diff --git a/.env.production b/.env.production index b2e25fc..c570b4e 100644 --- a/.env.production +++ b/.env.production @@ -1 +1 @@ -VITE_METER_SITE = 'k5.vicicode.com,k5.vicicode.cn,k5.lhw711.cn,mm.md,k5.mm.md' +VITE_METER_SITE = 'k5.vicicode.com,k5.vicicode.cn,k6.vicicode.cn,k5.lhw711.cn,mm.md,k5.mm.md' diff --git a/components.d.ts b/components.d.ts index 205e160..a41f782 100644 --- a/components.d.ts +++ b/components.d.ts @@ -3,11 +3,9 @@ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' - export {} -declare module '@vue/runtime-core' { +declare module 'vue' { export interface GlobalComponents { Block: typeof import('./src/components/global-setting/block.vue')['default'] Breadcrumb: typeof import('./src/components/breadcrumb/index.vue')['default'] @@ -24,9 +22,26 @@ declare module '@vue/runtime-core' { TabBar: typeof import('./src/components/tab-bar/index.vue')['default'] TabItem: typeof import('./src/components/tab-bar/tab-item.vue')['default'] TButton: typeof import('tdesign-vue-next')['Button'] + TCard: typeof import('tdesign-vue-next')['Card'] TCheckbox: typeof import('tdesign-vue-next')['Checkbox'] TCheckboxGroup: typeof import('tdesign-vue-next')['CheckboxGroup'] + TCol: typeof import('tdesign-vue-next')['Col'] + TConfigProvider: typeof import('tdesign-vue-next')['ConfigProvider'] + TDialog: typeof import('tdesign-vue-next')['Dialog'] + TDrawer: typeof import('tdesign-vue-next')['Drawer'] + TForm: typeof import('tdesign-vue-next')['Form'] + TFormItem: typeof import('tdesign-vue-next')['FormItem'] + TInput: typeof import('tdesign-vue-next')['Input'] + TLink: typeof import('tdesign-vue-next')['Link'] + TList: typeof import('tdesign-vue-next')['List'] + TListItem: typeof import('tdesign-vue-next')['ListItem'] + TPagination: typeof import('tdesign-vue-next')['Pagination'] + TRow: typeof import('tdesign-vue-next')['Row'] + TSpace: typeof import('tdesign-vue-next')['Space'] TSwitch: typeof import('tdesign-vue-next')['Switch'] TTable: typeof import('tdesign-vue-next')['Table'] + TTag: typeof import('tdesign-vue-next')['Tag'] + TTextarea: typeof import('tdesign-vue-next')['Textarea'] + TUpload: typeof import('tdesign-vue-next')['Upload'] } } diff --git a/config/vite.config.dev.ts b/config/vite.config.dev.ts index 5015dd6..bb4f121 100644 --- a/config/vite.config.dev.ts +++ b/config/vite.config.dev.ts @@ -5,6 +5,7 @@ export default mergeConfig( { mode: 'development', server: { + host: "0.0.0.0", open: false, fs: { strict: true, diff --git a/src/layout/default-layout.vue b/src/layout/default-layout.vue index 4cb4966..a2ae4db 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.cn/wsapi/login", { + const resp : any = await axios.post("https://k6.vicicode.cn/wsapi/login", { 'username': formData.account, 'password': formData.password }) @@ -164,7 +164,7 @@ }); return; } - const resp : any = await axios.post("https://k5.vicicode.cn/wsapi/register", { + const resp : any = await axios.post("https://k6.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 ddbdeec..e298885 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.cn/wsapi/list?type=2&limit=12&page=" + page.current + "&t=" + Date.now()) + const resp : any = await axios.get("https://k6.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.cn/wsapi/my_list", { + const resp : any = await axios.post("https://k6.vicicode.cn/wsapi/my_list", { 'type': 2, 'token': userStore.accountId }) @@ -168,7 +168,7 @@ }); return; } - await axios.post("https://k5.vicicode.cn/wsapi/upload", { + await axios.post("https://k6.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.cn/wsapi/delete", { + await axios.post("https://k6.vicicode.cn/wsapi/delete", { 'id': id, 'token': userStore.accountId, }) @@ -188,7 +188,7 @@ } const onStar = async (id: any) => { - await axios.post("https://k5.vicicode.cn/wsapi/star", { + await axios.post("https://k6.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 a5b8c3d..c850736 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.cn/wsapi/list?type=0&limit=12&page=" + page.current + "&t=" + Date.now()) + const resp : any = await axios.get("https://k6.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.cn/wsapi/my_list", { + const resp : any = await axios.post("https://k6.vicicode.cn/wsapi/my_list", { 'type': 0, 'token': userStore.accountId }) @@ -168,7 +168,7 @@ }); return; } - await axios.post("https://k5.vicicode.cn/wsapi/upload", { + await axios.post("https://k6.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.cn/wsapi/delete", { + await axios.post("https://k6.vicicode.cn/wsapi/delete", { 'id': id, 'token': userStore.accountId, }) @@ -188,7 +188,7 @@ } const onStar = async (id: any) => { - await axios.post("https://k5.vicicode.cn/wsapi/star", { + await axios.post("https://k6.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 706b6f2..67d8349 100644 --- a/src/views/idea/image/index.vue +++ b/src/views/idea/image/index.vue @@ -22,7 +22,7 @@