提交 78cffc87 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 新增商务数据分析师&全媒体运营师

上级 9c772c08
差异被折叠。
......@@ -64,6 +64,7 @@
"unplugin-auto-import": "^0.17.5",
"vite": "^5.2.10",
"vite-plugin-checker": "^0.6.4",
"vite-plugin-mkcert": "^1.17.6",
"vue-tsc": "^1.8.27"
}
}
......@@ -64,7 +64,7 @@ function handleClick(path: string) {
<div class="logo">
<router-link to="/"><img :src="appConfig.logo" /></router-link>
</div>
<div class="line"></div>
<div class="line" v-if="appConfig.title"></div>
</template>
<h1 class="app-name">
<router-link to="/">{{ appConfig.title }}</router-link>
......
......@@ -60,6 +60,40 @@ const appConfigList = [
xExamLabel: '商务数据分析理论考试',
labExamLabel: '商务数据分析实操考试',
loginURL: import.meta.env.VITE_SWSJFXS_LOGIN_URL
},
{
system: 'swsjfxs',
title: '商务数据分析师',
logo: 'https://webapp-pub.ezijing.com/website/base/images/logo_swsjfxs.png',
favicon: 'https://webapp-pub.ezijing.com/website/base/images/favicon_swsjfxs.png',
hosts: ['saas-lab-bda'],
studentMenus: [
{ name: '首页', path: '/' },
{ name: '我的大赛', path: '/student/contest' },
{ name: '大赛成绩查询', path: '/student/contest/score' }
],
xTrainLabel: '理论训练',
labTrainLabel: '实操训练',
xExamLabel: '理论考试',
labExamLabel: '实操考试',
loginURL: import.meta.env.VITE_SWSJFXS_LOGIN_URL
},
{
system: 'swsjfxs',
title: '全媒体运营师',
logo: 'https://webapp-pub.ezijing.com/website/base/images/logo_swsjfxs.png',
favicon: 'https://webapp-pub.ezijing.com/website/base/images/favicon_swsjfxs.png',
hosts: ['saas-lab-amo'],
studentMenus: [
{ name: '首页', path: '/' },
{ name: '我的大赛', path: '/student/contest' },
{ name: '大赛成绩查询', path: '/student/contest/score' }
],
xTrainLabel: '理论训练',
labTrainLabel: '实操训练',
xExamLabel: '理论考试',
labExamLabel: '实操考试',
loginURL: import.meta.env.VITE_SWSJFXS_LOGIN_URL
}
]
......@@ -68,7 +102,7 @@ export function useAppConfig() {
return item.hosts.find(host => location.host.includes(host))
})
const appConfig = found || appConfigList[0]
const appConfig = found || appConfigList[5]
return { ...appConfig }
}
import fs from 'node:fs'
import path from 'node:path'
// import fs from 'node:fs'
// import path from 'node:path'
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
......@@ -7,6 +7,7 @@ import vue from '@vitejs/plugin-vue'
// import checker from 'vite-plugin-checker'
import AutoImport from 'unplugin-auto-import/vite'
import ReactivityTransform from '@vue-macros/reactivity-transform/vite'
import mkcert from 'vite-plugin-mkcert'
export default defineConfig(({ mode }) => ({
base: mode === 'prod' ? 'https://webapp-pub.ezijing.com/website/prod/saas-lab/' : '/',
......@@ -17,16 +18,17 @@ export default defineConfig(({ mode }) => ({
dts: true,
eslintrc: { enabled: true }
}),
ReactivityTransform()
ReactivityTransform(),
mkcert()
// checker({ vueTsc: true, eslint: { lintCommand: 'eslint "./src/**/*.{vue,js,jsx,ts,tsx}"' } })
],
server: {
open: true,
host: 'dev.ezijing.com',
https: {
key: fs.readFileSync(path.join(__dirname, './https/ezijing.com.key')),
cert: fs.readFileSync(path.join(__dirname, './https/ezijing.com.pem'))
},
// https: {
// key: fs.readFileSync(path.join(__dirname, './https/ezijing.com.key')),
// cert: fs.readFileSync(path.join(__dirname, './https/ezijing.com.pem'))
// },
proxy: {
'/api': 'https://saas-lab.ezijing.com'
// '/api/resource': {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论