提交修复代码

This commit is contained in:
jiangzhe 2024-07-02 14:32:15 +08:00
parent 6d7458fb5a
commit a852c4b3d8
11 changed files with 19 additions and 18 deletions

8
.env.development Normal file
View File

@ -0,0 +1,8 @@
# 页面标题
VITE_APP_TITLE = 云舒心理云平台-学生端
# 开发环境配置
VITE_APP_ENV = 'development'
# 开发环境
VITE_APP_BASE_API = '/api'

8
.env.production Normal file
View File

@ -0,0 +1,8 @@
# 页面标题
VITE_APP_TITLE = 云舒心理云平台-学生端
# 生产环境配置
VITE_APP_ENV = 'production'
# 生产环境
VITE_APP_BASE_API = 'https://api.ysmental.com/health-api'

View File

@ -6,7 +6,7 @@ import ScaleList from '@/views/ScaleList/index.vue'
import ExamDetail from '@/views/ExamDetail/index.vue' import ExamDetail from '@/views/ExamDetail/index.vue'
const router = createRouter({ const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL), history: createWebHashHistory('/'),
routes: [ routes: [
{ {
path: '/login', path: '/login',

View File

@ -1,7 +1,7 @@
import axios from 'axios' import axios from 'axios'
const http = axios.create({ const http = axios.create({
baseURL: '/api', baseURL: import.meta.env.VITE_APP_BASE_API,
timeout: 50000 timeout: 50000
}) })

View File

@ -18,7 +18,7 @@ export default defineConfig({
outDir: 'web', outDir: 'web',
chunkSizeWarningLimit: 1600 chunkSizeWarningLimit: 1600
}, },
base: '/web', base: '/',
plugins: [ plugins: [
vue(), vue(),
vueSetupExtend(), vueSetupExtend(),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

View File

@ -1,15 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/web/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>云舒-心理健康平台-学生端</title>
<link rel="stylesheet" href="//at.alicdn.com/t/font_2143783_iq6z4ey5vu.css" />
<script type="module" crossorigin src="/web/assets/index-hcESTLrl.js"></script>
<link rel="stylesheet" crossorigin href="/web/assets/index-jbRSnGfa.css">
</head>
<body>
<div id="app"></div>
</body>
</html>