提交 4b5350bd authored 作者: 王鹏飞's avatar 王鹏飞

chore: 域名提取到环境变量

上级 0ad12710
VITE_LOGIN_URL=https://login.ezijing.com/auth/login/index VITE_LOGIN_URL=https://login.ezijing.com/auth/login/index
VITE_LAB_URL=https://bi.ezijing.com/bi/viewer?proc=0&action=index VITE_LAB_URL=https://bi.ezijing.com/bi/viewer?proc=0&action=index
VITE_DML_URL=https://saas-dml.ezijing.com VITE_DML_URL=https://saas-dml.ezijing.com
VITE_DML_PRO_URL=https://saas-dml-pro.ezijing.com VITE_DML_PRO_URL=https://saas-dml-pro.ezijing.com
\ No newline at end of file VITE_SAAS_LEARN_URL=https://saas-learn.ezijing.com
VITE_QA_CENTER_URL=https://qa-center.ezijing.com
VITE_X_LEARNING_URL=https://x-learning.ezijing.com
VITE_EXAM_SHOW_URL=https://exam-show.ezijing.com
...@@ -12,7 +12,7 @@ const appConfigList = [ ...@@ -12,7 +12,7 @@ const appConfigList = [
studentMenus: [ studentMenus: [
{ name: '首页', path: '/' }, { name: '首页', path: '/' },
{ name: '我的实验', path: '/student/lab' }, { name: '我的实验', path: '/student/lab' },
{ name: '理论学习', path: 'https://saas-learn.ezijing.com' } { name: '理论学习', path: import.meta.env.VITE_SAAS_LEARN_URL }
], ],
adminMenus: [ adminMenus: [
{ name: '首页', path: '/' }, { name: '首页', path: '/' },
......
...@@ -88,7 +88,7 @@ function handleSubmit() { ...@@ -88,7 +88,7 @@ function handleSubmit() {
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-button text type="primary" v-if="row.type === '2'"> <el-button text type="primary" v-if="row.type === '2'">
<a :href="`https://qa-center.ezijing.com/exam/markingPaper?exam_id=${row.exam_id}&id_number=${detail.id_number}`" target="_blank">查看</a> <a :href="`${import.meta.env.VITE_QA_CENTER_URL}/exam/markingPaper?exam_id=${row.exam_id}&id_number=${detail.id_number}`" target="_blank">查看</a>
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -63,7 +63,7 @@ function handleUpdate(row: any) { ...@@ -63,7 +63,7 @@ function handleUpdate(row: any) {
function handleView(row: any) { function handleView(row: any) {
const [paper] = row.exam_info.paper_list const [paper] = row.exam_info.paper_list
if (!paper) return if (!paper) return
const qaURL = `https://qa-center.ezijing.com/paper/detail/${paper.paper_id}` const qaURL = `${import.meta.env.VITE_QA_CENTER_URL}/paper/detail/${paper.paper_id}`
window.open(qaURL) window.open(qaURL)
} }
// 删除 // 删除
......
...@@ -34,7 +34,7 @@ function handleContestChange(data: ContestType) { ...@@ -34,7 +34,7 @@ function handleContestChange(data: ContestType) {
<router-link to="/student/lab" class="link1"></router-link> <router-link to="/student/lab" class="link1"></router-link>
<router-link to="/student/contest/score" class="link2"></router-link> <router-link to="/student/contest/score" class="link2"></router-link>
<router-link to="/student/contest" class="link3"></router-link> <router-link to="/student/contest" class="link3"></router-link>
<a href="https://saas-learn.ezijing.com" target="_blank" class="link4"></a> <a :href="import.meta.env.VITE_SAAS_LEARN_URL" target="_blank" class="link4"></a>
</div> </div>
<div class="select-group"> <div class="select-group">
<el-select size="large" placeholder="我的实验课程" @change="handleChange($event, 1)"> <el-select size="large" placeholder="我的实验课程" @change="handleChange($event, 1)">
......
...@@ -9,12 +9,12 @@ const studentMenus = [ ...@@ -9,12 +9,12 @@ const studentMenus = [
}, },
{ {
title: '理论知识学习', title: '理论知识学习',
href: 'https://saas-learn.ezijing.com', href: import.meta.env.VITE_SAAS_LEARN_URL,
icon: '/images/game_student_home_icon_2.png' icon: '/images/game_student_home_icon_2.png'
}, },
{ {
title: '1+X考试训练', title: '1+X考试训练',
href: 'https://x-learning.ezijing.com/exam/exam', href: `${import.meta.env.VITE_X_LEARNING_URL}/exam/exam`,
icon: '/images/game_student_home_icon_3.png' icon: '/images/game_student_home_icon_3.png'
}, },
{ {
......
...@@ -20,7 +20,7 @@ const currentExam = computed(() => { ...@@ -20,7 +20,7 @@ const currentExam = computed(() => {
// 考试平台 URL // 考试平台 URL
const examURL = computed(() => { const examURL = computed(() => {
return `https://exam-show.ezijing.com/exam/${currentExam.value?.exam_id}?has_time=0&has_submit=0&has_save=1` return `${import.meta.env.VITE_EXAM_SHOW_URL}/exam/${currentExam.value?.exam_id}?has_time=0&has_submit=0&has_save=1`
// return `https://dev.ezijing.com:5173/exam/7003551966412406784?has_time=0&has_submit=0&has_save=1` // return `https://dev.ezijing.com:5173/exam/7003551966412406784?has_time=0&has_submit=0&has_save=1`
}) })
......
...@@ -12,7 +12,7 @@ interface State { ...@@ -12,7 +12,7 @@ interface State {
const studentMenus: IMenuItem[] = [ const studentMenus: IMenuItem[] = [
{ name: '首页', path: '/' }, { name: '首页', path: '/' },
{ name: '我的实验', path: '/student/lab' }, { name: '我的实验', path: '/student/lab' },
{ name: '理论学习', path: 'https://saas-learn.ezijing.com' }, { name: '理论学习', path: import.meta.env.VITE_SAAS_LEARN_URL },
{ name: '我的大赛', path: '/student/contest' }, { name: '我的大赛', path: '/student/contest' },
{ name: '大赛成绩查询', path: '/student/contest/score' } { name: '大赛成绩查询', path: '/student/contest/score' }
] ]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论