dev_202412
yujialong 3 months ago
parent 09b0734d2f
commit 110580c311
  1. 2
      src/components/ueditorPlus/index.vue
  2. 2
      src/layouts/header/index.vue
  3. 3
      src/layouts/home/index.vue
  4. 4
      src/pages/station/preview/index.vue
  5. 8
      src/setting.js

@ -44,7 +44,7 @@ export default {
methods: {
initEditor () {
this.$nextTick(() => {
const host = Setting.isPro || Setting.isZxy ? location.origin : `http://121.37.12.51`
const host = Setting.isPro || Setting.isZxy ? location.origin : `http://118.31.167.228`
// eslint-disable-next-line no-undef
this.instance = UE.getEditor(this.randomId, {
UEDITOR_HOME_URL: Setting.isTest ? '/examination/static/ueditorPlus/' : '/static/ueditorPlus/',

@ -164,7 +164,7 @@ export default {
},
initSocket ({ id, account }) {
// socket
this.socket = new WebSocket(`${Setting.isTest ? 'ws' : 'wss'}://${Setting.isDev ? '121.37.12.51' : location.host}/nakadai/websocket/${id}/${account}`)
this.socket = new WebSocket(`${Setting.isTest ? 'ws' : 'wss'}://${Setting.isDev ? '118.31.167.228' : location.host}/nakadai/websocket/${id}/${account}`)
// this.socket = new WebSocket(`ws://192.168.31.51:9100/nakadai/websocket/${id}/${account}`)
// socket
this.socket.onopen = this.open;

@ -123,7 +123,7 @@ export default {
this.autoLogout()
this.noticed || this.getMatchStatus() // 0
this.logView || this.getLogStatus() // logViewfalse
this.handleRealName()
util.local.get(Setting.tokenKey) && this.handleRealName()
},
methods: {
...mapMutations("user", [
@ -140,6 +140,7 @@ export default {
const res = await this.$post(this.api.checkUserNameOrWorkNumber)
//
if (!res.hasName) {
this.realNameForm.workNumber = res.workNumber
this.realNameVisible = true
}
},

@ -487,9 +487,7 @@ export default {
//
async getChapter () {
if (this.courseId) {
let res = await this.$get(this.api.curriculumChapter, {
courseId: this.courseId
})
const res = await this.$get(this.api.curriculumChapter + '/' + this.courseId)
this.chapterList = res.chapterList;
if (this.chapterList.length && this.chapterList[0].subsectionList && this.chapterList[0].subsectionList.length && !this.commentId) {
this.preview(this.chapterList[0].subsectionList[0], this.chapterList[0].name, 1);

@ -6,7 +6,7 @@ const isDev = process.env.NODE_ENV === "development"; // 开发环境
const isHh = url.includes("10.196.131.73"); //是否河海版本
const isCH = url.includes("124.71.12.62"); //是否巢湖版本
const isPro = url.includes("occupationlab.com"); //是否职站生产
const isTest = url.includes('121.37.12.51'); //是否中台测试服
const isTest = url.includes('118.31.167.228'); //是否中台测试服
const isZxy = url.includes('izhixinyun'); //是否是智信云
const isSq = url.includes('10.20.100.204'); // 商丘
@ -26,11 +26,11 @@ if (isDev) {
// 本地
systemPath = `http://${location.hostname}:8093`
sandPath = `http://${location.hostname}:9520`
uploadURL = `http://121.37.12.51/`
host = "http://121.37.12.51/"; // 测试服
uploadURL = `http://118.31.167.228/`
host = "http://118.31.167.228/"; // 测试服
// host = 'https://www.occupationlab.com/' // 正式服
const ip = localStorage.getItem('localIp')
const ips = ['http://192.168.31.217:9000/', 'http://192.168.31.51:9000/', 'https://izhixinyun.com/']
const ips = ['http://192.168.31.217:9000/', 'http://192.168.31.51:9000/', 'http://118.31.167.228/']
host = ips[+ip]
// host = 'http://192.168.31.51:9000/'
} else if (isSq) {

Loading…
Cancel
Save