diff --git a/.env.development b/.env.development index e274eaa..b365030 100644 --- a/.env.development +++ b/.env.development @@ -2,11 +2,11 @@ NODE_ENV = 'development' # 本地环境接口地址(/api/index.ts文件中使用) -VITE_API_URL = 'http://192.168.34.155:6688' +# VITE_API_URL = 'http://192.168.34.155:6688' # VITE_API_URL = 'http://183.63.230.59:6090' # VITE_API_URL = 'http://2xliv7gs.shenzhuo.vip:55296' VITE_WPAPI_URL = "http://jxjzw.zhgdyun.com:8081" -# VITE_API_URL = "http://jxjzw.zhgdyun.com:9013" +VITE_API_URL = "http://jxjzw.zhgdyun.com:9013" # VITE_API_URL = 'https://xmglcs.hyjgxt.cn:6090' # 上传 diff --git a/src/components/LeftMenu/LeftMenu.vue b/src/components/LeftMenu/LeftMenu.vue index 74d28ae..2eef3b4 100644 --- a/src/components/LeftMenu/LeftMenu.vue +++ b/src/components/LeftMenu/LeftMenu.vue @@ -10,7 +10,7 @@
- + 搜索
@@ -50,6 +50,7 @@ const props = defineProps<{ pageable?: { pageNo: number; pageSize: number; total: number }; tabs?: string[]; activeIndex: number; + activeInputVal: string; // leftBack?: boolean; }>(); @@ -62,7 +63,7 @@ const emit = defineEmits<{ const offsetLeft = ref(70); const width = ref(56); -const value = ref(""); +const value = ref("" as any); const ActiveColor = ref(0); const active = ref(0); // const searchInput = ref(true); @@ -99,6 +100,15 @@ watch( ActiveColor.value = value; } ); +watch( + () => props.activeInputVal, + async (val: string) => { + value.value = val; + }, + { + immediate: true + } +);