update #33

Merged
charles merged 1 commits from main into prod 2025-09-09 16:56:24 +08:00
Showing only changes of commit 071f655349 - Show all commits

View File

@ -258,14 +258,14 @@ export default {
this.init()
// this.testFn()
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)
} else {
this.$store.commit('setLogoutUrl', "")
}
let url = window.location.href
// https://www.kaiyuancloud.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
// 'https://www.opencomputing.cn/?domain_name=Yr8wFg7AbfxM7wlv_4ORN#/login'.split('domain_name=')[1].split('#/login')[0]
// console.log("", url)
let params = {
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;
// if (window.location.href.includes("ncmatch")) {
@ -431,7 +431,7 @@ export default {
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({
self_redirect: true, //
id: "login_containera", // divid
@ -440,7 +440,7 @@ export default {
redirect_uri: encodeURIComponent(origin_uri + "/kpi/update_code_state.dspy"), // URL
state: this.wxState, // CSRF
style: "border:none;", //
href: "https://www.kaiyuancloud.cn/" //
href: "https://www.opencomputing.cn/" //
});
},
wxBtn() {
@ -471,9 +471,9 @@ export default {
// getLogoAPI(params).then((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: {
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)
},
initWebSocket(userId) {
// let webSocketUrl = 'wss://www.kaiyuancloud.cn/dev/wss/pub/rtcc.ws'
let webSocketUrl = 'wss://www.kaiyuancloud.cn/pub/rtcc.ws'
// let webSocketUrl = 'wss://www.opencomputing.cn/dev/wss/pub/rtcc.ws'
let webSocketUrl = 'wss://www.opencomputing.cn/pub/rtcc.ws'
console.log(webSocketUrl)
this.socket = new WebSocket(webSocketUrl)
// this.$store.commit('setSocket', new WebSocket('wss://120.92.102.27:27017/wss'))
@ -605,11 +605,11 @@ export default {
// }
let remoteUrl = ''
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")) {
remoteUrl = 'http://localhost:9527/'
} else {
remoteUrl = 'https://www.kaiyuancloud.cn/reseller/get_ipc_logo.dspy'
remoteUrl = 'https://www.opencomputing.cn/reseller/get_ipc_logo.dspy'
}
// axios.get(remoteUrl, {
// params: {