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", // 绑定的div容器id
@ -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: {