diff --git a/src/layout/default-layout.vue b/src/layout/default-layout.vue index a2ae4db..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://k6.vicicode.cn/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://k6.vicicode.cn/wsapi/register", { + const resp : any = await axios.post("https://k5.vicicode.cn/wsapi/register", { 'username': formData.account, 'password': formData.password }) diff --git a/src/views/idea/channel/index.vue b/src/views/idea/channel/index.vue index 0591fda..555337a 100644 --- a/src/views/idea/channel/index.vue +++ b/src/views/idea/channel/index.vue @@ -29,8 +29,8 @@ @@ -77,7 +77,7 @@ { state.page = page.current - const resp : any = await axios.get("https://k6.vicicode.cn/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 } @@ -146,7 +146,7 @@ const showPanel = async () => { state.refLoading = true; state.showPanel = true - const resp : any = await axios.post("https://k6.vicicode.cn/wsapi/my_list", { + const resp : any = await axios.post("https://k5.vicicode.cn/wsapi/my_list", { 'type': 2, 'token': userStore.accountId }) @@ -169,7 +169,7 @@ }); return; } - await axios.post("https://k6.vicicode.cn/wsapi/upload", { + await axios.post("https://k5.vicicode.cn/wsapi/upload", { 'type': 2, 'token': userStore.accountId, 'title': formData.title, @@ -181,7 +181,7 @@ } const onDT = async (id: any) => { - await axios.post("https://k6.vicicode.cn/wsapi/delete", { + await axios.post("https://k5.vicicode.cn/wsapi/delete", { 'id': id, 'token': userStore.accountId, }) @@ -189,7 +189,7 @@ } const onStar = async (id: any) => { - await axios.post("https://k6.vicicode.cn/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 538b4c9..cd720aa 100644 --- a/src/views/idea/firmware/index.vue +++ b/src/views/idea/firmware/index.vue @@ -29,8 +29,8 @@ @@ -77,7 +77,7 @@ { state.page = page.current - const resp : any = await axios.get("https://k6.vicicode.cn/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 } @@ -146,7 +146,7 @@ const showPanel = async () => { state.refLoading = true; state.showPanel = true - const resp : any = await axios.post("https://k6.vicicode.cn/wsapi/my_list", { + const resp : any = await axios.post("https://k5.vicicode.cn/wsapi/my_list", { 'type': 0, 'token': userStore.accountId }) @@ -169,7 +169,7 @@ }); return; } - await axios.post("https://k6.vicicode.cn/wsapi/upload", { + await axios.post("https://k5.vicicode.cn/wsapi/upload", { 'type': 0, 'token': userStore.accountId, 'title': formData.title, @@ -181,7 +181,7 @@ } const onDT = async (id: any) => { - await axios.post("https://k6.vicicode.cn/wsapi/delete", { + await axios.post("https://k5.vicicode.cn/wsapi/delete", { 'id': id, 'token': userStore.accountId, }) @@ -189,7 +189,7 @@ } const onStar = async (id: any) => { - await axios.post("https://k6.vicicode.cn/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 67d8349..706b6f2 100644 --- a/src/views/idea/image/index.vue +++ b/src/views/idea/image/index.vue @@ -22,7 +22,7 @@