Skip to content

Commit

Permalink
Merge branch 'base'
Browse files Browse the repository at this point in the history
  • Loading branch information
Burt committed Dec 31, 2024
2 parents 25a6ba3 + c47eb87 commit 28a7f26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/interceptors/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 我这里应为大部分都可以随便进入,所以使用黑名单
*/
import { useUserStore } from '@/store'
import { getNeedLoginPages, needLoginPages as _needLoginPages } from '@/utils'
import { needLoginPages as _needLoginPages, getNeedLoginPages } from '@/utils'

// TODO Check
const loginRoute = '/pages/login/index'
Expand Down Expand Up @@ -49,5 +49,7 @@ export const routeInterceptor = {
uni.addInterceptor('navigateTo', navigateToInterceptor)
uni.addInterceptor('reLaunch', navigateToInterceptor)
uni.addInterceptor('redirectTo', navigateToInterceptor)
uni.addInterceptor('navigateBack', navigateToInterceptor)
uni.addInterceptor('switchTab', navigateToInterceptor)
},
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
]
},
"vueCompilerOptions": {
"target": 3,
"plugins": ["@uni-helper/uni-types/volar-plugin"]
},
"exclude": ["node_modules"],
Expand Down
2 changes: 1 addition & 1 deletion vite-plugins/copyNativeRes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function copyNativeRes() {
__dirname,
'../dist',
process.env.NODE_ENV === 'production' ? 'build' : 'dev',
process.env.UNI_PLATFORM,
process.env.UNI_PLATFORM!,
'nativeResources',
)

Expand Down

0 comments on commit 28a7f26

Please sign in to comment.