Merge branch 'base'

This commit is contained in:
Burt
2024-12-31 12:20:28 +08:00
3 changed files with 4 additions and 3 deletions

View File

@@ -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'
@@ -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)
},
}

View File

@@ -24,7 +24,6 @@
]
},
"vueCompilerOptions": {
"target": 3,
"plugins": ["@uni-helper/uni-types/volar-plugin"]
},
"exclude": ["node_modules"],

View File

@@ -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',
)