feat(frontend): Align admin and user API integration
This commit is contained in:
@@ -14,7 +14,7 @@ export default defineConfig({
|
||||
AutoImport({
|
||||
imports: ['vue', 'vue-router', 'pinia'],
|
||||
dts: 'src/auto-imports.d.ts',
|
||||
dirs: ['src/stores', 'src/composables'],
|
||||
dirs: ['src/composables'], // 只扫描 composables,stores 使用显式导入
|
||||
vueTemplate: true
|
||||
}),
|
||||
Components({
|
||||
@@ -39,6 +39,13 @@ export default defineConfig({
|
||||
}
|
||||
}
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
silenceDeprecations: ['legacy-js-api'] // 静默 Sass legacy API 弃用警告
|
||||
}
|
||||
}
|
||||
},
|
||||
build: {
|
||||
target: 'es2015',
|
||||
outDir: 'dist',
|
||||
|
||||
Reference in New Issue
Block a user