update
This commit is contained in:
parent
bf1ed9aa13
commit
071f655349
@ -258,14 +258,14 @@ export default {
|
|||||||
this.init()
|
this.init()
|
||||||
// this.testFn()
|
// this.testFn()
|
||||||
store.commit('tagsView/resetBreadcrumbState');
|
store.commit('tagsView/resetBreadcrumbState');
|
||||||
if (window.location.href.includes("kaiyuancloud") && window.location.href.includes("domain_name") || !window.location.href.includes("kaiyuancloud")) {
|
if (window.location.href.includes("opencomputing") && window.location.href.includes("domain_name") || !window.location.href.includes("opencomputing")) {
|
||||||
this.$store.commit('setLogoutUrl', window.location.href)
|
this.$store.commit('setLogoutUrl', window.location.href)
|
||||||
} else {
|
} else {
|
||||||
this.$store.commit('setLogoutUrl', "")
|
this.$store.commit('setLogoutUrl', "")
|
||||||
}
|
}
|
||||||
let url = window.location.href
|
let url = window.location.href
|
||||||
// https://www.kaiyuancloud.cn/?domain_name=Yr8wFg7AbfxM7wlv_4ORN#/login
|
// https://www.opencomputing.cn/?domain_name=Yr8wFg7AbfxM7wlv_4ORN#/login
|
||||||
// 'https://www.kaiyuancloud.cn/?domain_name=Yr8wFg7AbfxM7wlv_4ORN#/login'.split('domain_name=')[1].split('#/login')[0]
|
// 'https://www.opencomputing.cn/?domain_name=Yr8wFg7AbfxM7wlv_4ORN#/login'.split('domain_name=')[1].split('#/login')[0]
|
||||||
// console.log("本页面的是", url)
|
// console.log("本页面的是", url)
|
||||||
let params = {
|
let params = {
|
||||||
domain_name: url.includes('domain_name') ? url.split('domain_name=')[1].split('#/login')[0] : ''
|
domain_name: url.includes('domain_name') ? url.split('domain_name=')[1].split('#/login')[0] : ''
|
||||||
@ -293,7 +293,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// this.audioElement = new Audio('https://www.kaiyuancloud.cn/dev/idfile?path=/batch_upload/phone-ring.mp3');
|
// this.audioElement = new Audio('https://www.opencomputing.cn/dev/idfile?path=/batch_upload/phone-ring.mp3');
|
||||||
// // 设置音频循环播放
|
// // 设置音频循环播放
|
||||||
// this.audioElement.loop = true;
|
// this.audioElement.loop = true;
|
||||||
// if (window.location.href.includes("ncmatch")) {
|
// if (window.location.href.includes("ncmatch")) {
|
||||||
@ -431,7 +431,7 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
initWxCode(appid) {
|
initWxCode(appid) {
|
||||||
let origin_uri = window.location.href.includes("dev") ? "https://www.kaiyuancloud.cn/dev" : "https://www.kaiyuancloud.cn"
|
let origin_uri = window.location.href.includes("dev") ? "https://www.opencomputing.cn/dev" : "https://www.opencomputing.cn"
|
||||||
let obj = new WxLogin({
|
let obj = new WxLogin({
|
||||||
self_redirect: true, // 登录后是否跳转到当前页面
|
self_redirect: true, // 登录后是否跳转到当前页面
|
||||||
id: "login_containera", // 绑定的div容器id
|
id: "login_containera", // 绑定的div容器id
|
||||||
@ -440,7 +440,7 @@ export default {
|
|||||||
redirect_uri: encodeURIComponent(origin_uri + "/kpi/update_code_state.dspy"), // 微信授权回调的URL,用户授权后重定向的地址
|
redirect_uri: encodeURIComponent(origin_uri + "/kpi/update_code_state.dspy"), // 微信授权回调的URL,用户授权后重定向的地址
|
||||||
state: this.wxState, // 防止CSRF攻击的随机字符串,用于保证请求的一致性
|
state: this.wxState, // 防止CSRF攻击的随机字符串,用于保证请求的一致性
|
||||||
style: "border:none;", // 登录框样式,可以调整
|
style: "border:none;", // 登录框样式,可以调整
|
||||||
href: "https://www.kaiyuancloud.cn/" // 点击登录按钮后的跳转链接(通常是授权登录后的跳转)
|
href: "https://www.opencomputing.cn/" // 点击登录按钮后的跳转链接(通常是授权登录后的跳转)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
wxBtn() {
|
wxBtn() {
|
||||||
@ -471,9 +471,9 @@ export default {
|
|||||||
// getLogoAPI(params).then((res) => {
|
// getLogoAPI(params).then((res) => {
|
||||||
// console.log("测试的值时", res)
|
// console.log("测试的值时", res)
|
||||||
// })
|
// })
|
||||||
axios.get('https://www.kaiyuancloud.cn/dev/reseller/get_ipc_logo.dspy', {
|
axios.get('https://www.opencomputing.cn/dev/reseller/get_ipc_logo.dspy', {
|
||||||
params: {
|
params: {
|
||||||
url_link: 'https://www.kaiyuancloud.cn/dev/?domain_name=TqXo2VbiB47nzUrB_ZLxq' // 这里设置查询参数 a: 1
|
url_link: 'https://www.opencomputing.cn/dev/?domain_name=TqXo2VbiB47nzUrB_ZLxq' // 这里设置查询参数 a: 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -514,8 +514,8 @@ export default {
|
|||||||
this.$store.commit('setShowVideo', false)
|
this.$store.commit('setShowVideo', false)
|
||||||
},
|
},
|
||||||
initWebSocket(userId) {
|
initWebSocket(userId) {
|
||||||
// let webSocketUrl = 'wss://www.kaiyuancloud.cn/dev/wss/pub/rtcc.ws'
|
// let webSocketUrl = 'wss://www.opencomputing.cn/dev/wss/pub/rtcc.ws'
|
||||||
let webSocketUrl = 'wss://www.kaiyuancloud.cn/pub/rtcc.ws'
|
let webSocketUrl = 'wss://www.opencomputing.cn/pub/rtcc.ws'
|
||||||
console.log(webSocketUrl)
|
console.log(webSocketUrl)
|
||||||
this.socket = new WebSocket(webSocketUrl)
|
this.socket = new WebSocket(webSocketUrl)
|
||||||
// this.$store.commit('setSocket', new WebSocket('wss://120.92.102.27:27017/wss'))
|
// this.$store.commit('setSocket', new WebSocket('wss://120.92.102.27:27017/wss'))
|
||||||
@ -605,11 +605,11 @@ export default {
|
|||||||
// }
|
// }
|
||||||
let remoteUrl = ''
|
let remoteUrl = ''
|
||||||
if (window.location.href.includes("dev")) {
|
if (window.location.href.includes("dev")) {
|
||||||
remoteUrl = 'https://www.kaiyuancloud.cn/dev/reseller/get_ipc_logo.dspy'
|
remoteUrl = 'https://www.opencomputing.cn/dev/reseller/get_ipc_logo.dspy'
|
||||||
} else if (window.location.href.includes("localhost")) {
|
} else if (window.location.href.includes("localhost")) {
|
||||||
remoteUrl = 'http://localhost:9527/'
|
remoteUrl = 'http://localhost:9527/'
|
||||||
} else {
|
} else {
|
||||||
remoteUrl = 'https://www.kaiyuancloud.cn/reseller/get_ipc_logo.dspy'
|
remoteUrl = 'https://www.opencomputing.cn/reseller/get_ipc_logo.dspy'
|
||||||
}
|
}
|
||||||
// axios.get(remoteUrl, {
|
// axios.get(remoteUrl, {
|
||||||
// params: {
|
// params: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user