diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index b4e446b..fcefa9d 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -335,7 +335,7 @@ export default { mallId: Cookie.get('admin-mallId'), resultsDetails: Cookie.get('admin-resultsDetails'), resultAnnouncementTime: Cookie.get('admin-resultAnnouncementTime'), - curriculumName: Cookie.get('admin-curriculumName') ? unescape(Cookie.get('admin-curriculumName')) : 'python', // 课程名称 + curriculumName: Cookie.get('admin-curriculumName') ? decodeURIComponent(Cookie.get('admin-curriculumName')) : 'python', // 课程名称 fromManager: Cookie.get('admin-fromManager'), // 是否是从教师端进入 curSystemId: 1, projectPermissions: 0, // 项目权限(0、练习 1、考核 2、竞赛) diff --git a/src/config/index.js b/src/config/index.js index 031901d..b4866cf 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -11,7 +11,7 @@ let host = location.origin + '/' let bankPath = `${location.origin}/banksystem` // 银行系统 // 121.37.12.51 | 192.168.31.151 if (isDev) { - host = 'http://192.168.31.152:9000/' + host = 'http://192.168.31.51:9000/' // host = 'http://192.168.31.53:9000/' host = 'http://121.37.12.51:9000/' // host = 'https://occupationlab.com/' diff --git a/src/main.js b/src/main.js index c8abf99..62d990b 100644 --- a/src/main.js +++ b/src/main.js @@ -16,7 +16,6 @@ axios.get(config.host + api.detailsOfGoods + '?mallId=' + Cookie.get('admin-mall token: Cookie.get('admin-token') }, }).then(({ data }) => { -console.log(33, data.orderDetails.mall.themeId) const themeId = data.orderDetails.mall.themeId || 9 Vue.prototype.$themeId = themeId // require(`@/styles/theme/theme${themeId}.scss`) @@ -73,7 +72,7 @@ Vue.prototype.$config = config Vue.config.productionTip = false; const curriculumName = util.getCookie('curriculumName') -document.title = curriculumName ? unescape(curriculumName) : 'python' +document.title = curriculumName ? decodeURIComponent(curriculumName) : 'python' router.beforeEach((to, from, next) => { next() }) diff --git a/src/views/Home.vue b/src/views/Home.vue index 9a4153c..3e4f055 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -93,7 +93,7 @@ export default { competitionId: Cookie.get('admin-competitionId'), fromManager: Cookie.get('admin-fromManager'), // 是否是从教师端进入 courseId: Cookie.get('admin-courseId'), // 课程id - curriculumName: Cookie.get('admin-curriculumName') ? unescape(Cookie.get('admin-curriculumName')) : 'python', // 课程名称 + curriculumName: Cookie.get('admin-curriculumName') ? decodeURIComponent(Cookie.get('admin-curriculumName')) : 'python', // 课程名称 assessmentId: Cookie.get('admin-assessmentId'), // 考核id mallId: Cookie.get('admin-mallId'), language: +Cookie.get('admin-language') || 0, // 编程语言