diff --git a/src/App.vue b/src/App.vue index bc486f6..78844ee 100644 --- a/src/App.vue +++ b/src/App.vue @@ -34,7 +34,7 @@ window.TextDecoder = TextDecoder; // 遥测 - if(location.hostname == 'k5.vicicode.com' || location.hostname == 'k5.lhw711.cn' || location.hostname == 'mm.md' || location.hostname == 'k5.mm.md'){ + if(location.hostname == 'k5.vicicode.com' || location.hostname == 'k5.vicicode.cn' || location.hostname == 'k5.lhw711.cn' || location.hostname == 'mm.md' || location.hostname == 'k5.mm.md'){ const aegis = new Aegis({ id: 'yr5DeslJkz3Qn20jg0', // 上报 id reportApiSpeed: true, // 接口测速 diff --git a/src/layout/default-layout.vue b/src/layout/default-layout.vue index f747d0b..4cb4966 100644 --- a/src/layout/default-layout.vue +++ b/src/layout/default-layout.vue @@ -136,7 +136,7 @@ }); const onLogin = async () => { - const resp : any = await axios.post("https://k5.vicicode.com/wsapi/login", { + const resp : any = await axios.post("https://k5.vicicode.cn/wsapi/login", { 'username': formData.account, 'password': formData.password }) @@ -164,7 +164,7 @@ }); return; } - const resp : any = await axios.post("https://k5.vicicode.com/wsapi/register", { + const resp : any = await axios.post("https://k5.vicicode.cn/wsapi/register", { 'username': formData.account, 'password': formData.password }) diff --git a/src/main.ts b/src/main.ts index 390a721..702680f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -39,7 +39,7 @@ app.use(i18n); app.use(globalComponents); app.use(directive); -if(location.hostname == 'k5.vicicode.com' || location.hostname == 'k5.lhw711.cn' || location.hostname == 'mm.md' || location.hostname == 'k5.mm.md'){ +if(location.hostname == 'k5.vicicode.com' || location.hostname == 'k5.vicicode.cn' || location.hostname == 'k5.lhw711.cn' || location.hostname == 'mm.md' || location.hostname == 'k5.mm.md'){ app.use(VueMatomo, { host: '//analytics.vicicode.com', siteId: 2, diff --git a/src/views/idea/channel/index.vue b/src/views/idea/channel/index.vue index 8b033a6..ddbdeec 100644 --- a/src/views/idea/channel/index.vue +++ b/src/views/idea/channel/index.vue @@ -29,7 +29,7 @@ @@ -76,7 +76,7 @@ { state.page = page.current - const resp : any = await axios.get("https://k5.vicicode.com/wsapi/list?type=2&limit=12&page=" + page.current + "&t=" + Date.now()) + const resp : any = await axios.get("https://k5.vicicode.cn/wsapi/list?type=2&limit=12&page=" + page.current + "&t=" + Date.now()) state.total = resp.total state.nowpage = resp.data } @@ -145,7 +145,7 @@ const showPanel = async () => { state.refLoading = true; state.showPanel = true - const resp : any = await axios.post("https://k5.vicicode.com/wsapi/my_list", { + const resp : any = await axios.post("https://k5.vicicode.cn/wsapi/my_list", { 'type': 2, 'token': userStore.accountId }) @@ -168,7 +168,7 @@ }); return; } - await axios.post("https://k5.vicicode.com/wsapi/upload", { + await axios.post("https://k5.vicicode.cn/wsapi/upload", { 'type': 2, 'token': userStore.accountId, 'title': formData.title, @@ -180,7 +180,7 @@ } const onDT = async (id: any) => { - await axios.post("https://k5.vicicode.com/wsapi/delete", { + await axios.post("https://k5.vicicode.cn/wsapi/delete", { 'id': id, 'token': userStore.accountId, }) @@ -188,7 +188,7 @@ } const onStar = async (id: any) => { - await axios.post("https://k5.vicicode.com/wsapi/star", { + await axios.post("https://k5.vicicode.cn/wsapi/star", { 'id': id }) Message.success({ diff --git a/src/views/idea/firmware/index.vue b/src/views/idea/firmware/index.vue index a824ce8..a5b8c3d 100644 --- a/src/views/idea/firmware/index.vue +++ b/src/views/idea/firmware/index.vue @@ -29,7 +29,7 @@ @@ -76,7 +76,7 @@ { state.page = page.current - const resp : any = await axios.get("https://k5.vicicode.com/wsapi/list?type=0&limit=12&page=" + page.current + "&t=" + Date.now()) + const resp : any = await axios.get("https://k5.vicicode.cn/wsapi/list?type=0&limit=12&page=" + page.current + "&t=" + Date.now()) state.total = resp.total state.nowpage = resp.data } @@ -145,7 +145,7 @@ const showPanel = async () => { state.refLoading = true; state.showPanel = true - const resp : any = await axios.post("https://k5.vicicode.com/wsapi/my_list", { + const resp : any = await axios.post("https://k5.vicicode.cn/wsapi/my_list", { 'type': 0, 'token': userStore.accountId }) @@ -168,7 +168,7 @@ }); return; } - await axios.post("https://k5.vicicode.com/wsapi/upload", { + await axios.post("https://k5.vicicode.cn/wsapi/upload", { 'type': 0, 'token': userStore.accountId, 'title': formData.title, @@ -180,7 +180,7 @@ } const onDT = async (id: any) => { - await axios.post("https://k5.vicicode.com/wsapi/delete", { + await axios.post("https://k5.vicicode.cn/wsapi/delete", { 'id': id, 'token': userStore.accountId, }) @@ -188,7 +188,7 @@ } const onStar = async (id: any) => { - await axios.post("https://k5.vicicode.com/wsapi/star", { + await axios.post("https://k5.vicicode.cn/wsapi/star", { 'id': id }) Message.success({ diff --git a/src/views/idea/image/index.vue b/src/views/idea/image/index.vue index 59e1b6b..706b6f2 100644 --- a/src/views/idea/image/index.vue +++ b/src/views/idea/image/index.vue @@ -22,7 +22,7 @@