diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..9580695 --- /dev/null +++ b/.env.development @@ -0,0 +1,8 @@ +# 页面标题 +VITE_APP_TITLE = 云舒心理云平台-学生端 + +# 开发环境配置 +VITE_APP_ENV = 'development' + +# 开发环境 +VITE_APP_BASE_API = '/api' diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..5f4feec --- /dev/null +++ b/.env.production @@ -0,0 +1,8 @@ +# 页面标题 +VITE_APP_TITLE = 云舒心理云平台-学生端 + +# 生产环境配置 +VITE_APP_ENV = 'production' + +# 生产环境 +VITE_APP_BASE_API = 'https://api.ysmental.com/health-api' diff --git a/src/router/index.js b/src/router/index.js index 7665a2e..aaa96bc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -6,7 +6,7 @@ import ScaleList from '@/views/ScaleList/index.vue' import ExamDetail from '@/views/ExamDetail/index.vue' const router = createRouter({ - history: createWebHashHistory(import.meta.env.BASE_URL), + history: createWebHashHistory('/'), routes: [ { path: '/login', diff --git a/src/utils/http.js b/src/utils/http.js index 71f876b..dcf7719 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -1,7 +1,7 @@ import axios from 'axios' const http = axios.create({ - baseURL: '/api', + baseURL: import.meta.env.VITE_APP_BASE_API, timeout: 50000 }) diff --git a/vite.config.js b/vite.config.js index e425a6e..c39e751 100644 --- a/vite.config.js +++ b/vite.config.js @@ -18,7 +18,7 @@ export default defineConfig({ outDir: 'web', chunkSizeWarningLimit: 1600 }, - base: '/web', + base: '/', plugins: [ vue(), vueSetupExtend(), diff --git a/web/assets/answer-element-1-aY4nyCHX.png b/web/assets/answer-element-1-aY4nyCHX.png deleted file mode 100644 index 0d61d19..0000000 Binary files a/web/assets/answer-element-1-aY4nyCHX.png and /dev/null differ diff --git a/web/assets/bg1-R2DmIR8f.jpg b/web/assets/bg1-R2DmIR8f.jpg deleted file mode 100644 index d724567..0000000 Binary files a/web/assets/bg1-R2DmIR8f.jpg and /dev/null differ diff --git a/web/assets/logo-hVhfG4We.png b/web/assets/logo-hVhfG4We.png deleted file mode 100644 index 5cb20be..0000000 Binary files a/web/assets/logo-hVhfG4We.png and /dev/null differ diff --git a/web/assets/logo-mBAH7lYI.jpg b/web/assets/logo-mBAH7lYI.jpg deleted file mode 100644 index dcae1a2..0000000 Binary files a/web/assets/logo-mBAH7lYI.jpg and /dev/null differ diff --git a/web/favicon.ico b/web/favicon.ico deleted file mode 100644 index 5a503f2..0000000 Binary files a/web/favicon.ico and /dev/null differ diff --git a/web/index.html b/web/index.html deleted file mode 100644 index d50d129..0000000 --- a/web/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - 云舒-心理健康平台-学生端 - - - - - -
- -