From f3501d43851c9542b615b8f04b4c40715cbebcd5 Mon Sep 17 00:00:00 2001 From: cuiyouliang Date: Fri, 6 Jun 2025 11:48:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=A8=A1=E5=9D=97=E8=81=94?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DictRadio/index.vue | 24 +- src/plugins/index.ts | 3 +- src/store/modules/mall.ts | 1 + src/utils/dict.ts | 20 ++ .../components/AddressSelector/index.vue | 23 +- src/views/im/index.vue | 1 - src/views/oms/order/detail.vue | 292 ++++++++---------- src/views/oms/order/index.vue | 35 +-- vite.config.ts | 2 +- 9 files changed, 189 insertions(+), 212 deletions(-) diff --git a/src/components/DictRadio/index.vue b/src/components/DictRadio/index.vue index f12dd42..14c1ded 100644 --- a/src/components/DictRadio/index.vue +++ b/src/components/DictRadio/index.vue @@ -5,7 +5,6 @@ + diff --git a/src/views/oms/order/index.vue b/src/views/oms/order/index.vue index 335932f..17ddfae 100644 --- a/src/views/oms/order/index.vue +++ b/src/views/oms/order/index.vue @@ -248,7 +248,6 @@ import { } from '@/api/oms/order'; import AddressSelector from '@/views/components/AddressSelector/index.vue'; import dateUtil, { dateFormat } from '@/utils/DateUtil'; -import { isStarRepo } from '@/utils/is-star-plugin'; import { useUserStore } from '@/store/modules/user'; export default { @@ -363,29 +362,19 @@ export default { } } }, - async created() { - const res = await isStarRepo( - 'zccbbg', - 'RuoYi-Mall', - this.userId, - 'https://mall.ichengle.top/order/order', - 'ruoyi-mall-商城', - 'https://gitee.com/zccbbg/RuoYi-Mall' - ); - this.show = res; - if (res) { - const { phone, status, today } = this.$route.query; - if (phone) { - this.queryParams.userPhone = phone; - } - if (status) { - this.queryParams.status = status; - } - if (today) { - this.setToday(); - } - this.getList(); + mounted() { + this.show = true; + const { phone, status, today } = this.$route.query; + if (phone) { + this.queryParams.userPhone = phone; } + if (status) { + this.queryParams.status = status; + } + if (today) { + this.setToday(); + } + this.getList(); }, methods: { /** 日期组件设置为今天 */ diff --git a/vite.config.ts b/vite.config.ts index 1649875..dd40ee6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -25,7 +25,7 @@ export default defineConfig(({ mode, command }) => { proxy: { [env.VITE_APP_BASE_API]: { // target: 'http://192.168.1.250:8080', - target: 'http://111.62.22.190:8080', + target: 'http://192.168.1.250:8080', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), ''),