提交修复代码
This commit is contained in:
parent
6d7458fb5a
commit
a852c4b3d8
|
@ -0,0 +1,8 @@
|
|||
# 页面标题
|
||||
VITE_APP_TITLE = 云舒心理云平台-学生端
|
||||
|
||||
# 开发环境配置
|
||||
VITE_APP_ENV = 'development'
|
||||
|
||||
# 开发环境
|
||||
VITE_APP_BASE_API = '/api'
|
|
@ -0,0 +1,8 @@
|
|||
# 页面标题
|
||||
VITE_APP_TITLE = 云舒心理云平台-学生端
|
||||
|
||||
# 生产环境配置
|
||||
VITE_APP_ENV = 'production'
|
||||
|
||||
# 生产环境
|
||||
VITE_APP_BASE_API = 'https://api.ysmental.com/health-api'
|
|
@ -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',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import axios from 'axios'
|
||||
|
||||
const http = axios.create({
|
||||
baseURL: '/api',
|
||||
baseURL: import.meta.env.VITE_APP_BASE_API,
|
||||
timeout: 50000
|
||||
})
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ export default defineConfig({
|
|||
outDir: 'web',
|
||||
chunkSizeWarningLimit: 1600
|
||||
},
|
||||
base: '/web',
|
||||
base: '/',
|
||||
plugins: [
|
||||
vue(),
|
||||
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 |
BIN
web/favicon.ico
BIN
web/favicon.ico
Binary file not shown.
Before Width: | Height: | Size: 17 KiB |
|
@ -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>
|
Loading…
Reference in New Issue