diff --git a/.env.prod b/.env.prod index ca7cb8e4..ae86a9a8 100644 --- a/.env.prod +++ b/.env.prod @@ -4,7 +4,7 @@ NODE_ENV=production VITE_DEV=false # 请求路径 -VITE_BASE_URL='http://localhost:48080' +VITE_BASE_URL='https://www.cdsrh.top' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务 VITE_UPLOAD_TYPE=server @@ -22,7 +22,7 @@ VITE_DROP_CONSOLE=true VITE_SOURCEMAP=false # 打包路径 -VITE_BASE_PATH=/ +VITE_BASE_PATH=/kfc/ # 输出路径 VITE_OUT_DIR=dist-prod diff --git a/index.html b/index.html index 8cfcbefa..1d82df5d 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,13 @@ content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite3 + element plus 的后台开源免费管理系统!" /> %VITE_APP_TITLE% + + +
\ No newline at end of file diff --git a/src/views/kfc/product/ProductForm.vue b/src/views/kfc/product/ProductForm.vue index 8463f771..ba6618bf 100644 --- a/src/views/kfc/product/ProductForm.vue +++ b/src/views/kfc/product/ProductForm.vue @@ -36,7 +36,7 @@ - + diff --git a/src/views/kfc/product/index.vue b/src/views/kfc/product/index.vue index a2e1095e..cbc07984 100644 --- a/src/views/kfc/product/index.vue +++ b/src/views/kfc/product/index.vue @@ -223,8 +223,15 @@ :formatter="dateFormatter" width="180px" /> - + + + \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 38376ef9..72026452 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,13 +31,14 @@ // "vite-plugin-svg-icons/client" ], "outDir": "target", // 请保留这个属性,防止tsconfig.json文件报错 - "typeRoots": ["./node_modules/@types/", "./types"] + "typeRoots": ["./node_modules/@types/", "./types","./src/types"] }, "include": [ "src", "types/**/*.d.ts", "src/types/auto-imports.d.ts", - "src/types/auto-components.d.ts" + "src/types/auto-components.d.ts", + "src/types/**/*.d.ts" ], "exclude": ["dist", "target", "node_modules"] }