Browse Source

修改路径标识

林旭祥 8 months ago
parent
commit
21ec02271e
2 changed files with 3 additions and 3 deletions
  1. 1 1
      tsconfig.json
  2. 2 2
      vite.config.ts

+ 1 - 1
tsconfig.json

@@ -13,7 +13,7 @@
     "baseUrl": ".",
     "allowJs": true,
     "paths": {
-      "@/*": ["teach/src/*"]
+      "@/*": ["src/*"]
     },
     "types": ["vite/client"],
     "skipLibCheck": true,

+ 2 - 2
vite.config.ts

@@ -13,7 +13,7 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
     resolve: {
       alias: {
         '~': path.resolve(__dirname, './'),
-        '@': path.resolve(__dirname, './src')
+        '@': path.resolve(__dirname, './teach/src')
       },
       extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
     },
@@ -62,7 +62,7 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
         'axios',
         '@vueuse/core',
         'echarts',
-        // 'path-to-regexp', 
+        // 'path-to-regexp',
         // '@wangeditor/editor',
         // '@wangeditor/editor-for-vue',
         // '@vueup/vue-quill',