系统名称转码

openf12
yujialong 1 year ago
parent a0f387f1f6
commit b4c6e94cf5
  1. 2
      src/components/TestPanel.vue
  2. 2
      src/config/index.js
  3. 3
      src/main.js
  4. 2
      src/views/Home.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)

@ -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/'

@ -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()
})

@ -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, //

Loading…
Cancel
Save