diff --git a/.env.test b/.env.test index b7f4a92..cc722fa 100644 --- a/.env.test +++ b/.env.test @@ -1,8 +1,8 @@ # port -VITE_DEV_PORT = '8080' +VITE_DEV_PORT = '26111' # production path -VITE_BASE_URL = 'http://dev.ccwin-in.com:25100/api' +VITE_BASE_URL = 'http://dev.ccwin-in.com:26112' # 租户开关 -VITE_APP_TENANT_ENABLE=true \ No newline at end of file +VITE_APP_TENANT_ENABLE=false \ No newline at end of file diff --git a/src/views/preview/wrapper.vue b/src/views/preview/wrapper.vue index 86abc6b..ee35626 100644 --- a/src/views/preview/wrapper.vue +++ b/src/views/preview/wrapper.vue @@ -16,7 +16,7 @@ let key = ref(Date.now()) // 数据变更 -> 组件销毁重建 ;[SavePageEnum.JSON, SavePageEnum.CHART].forEach((saveEvent: string) => { if (!window.opener) return - window.opener.addEventListener(saveEvent, async (e: any) => { + window.addEventListener(saveEvent, async (e: any) => { const localStorageInfo: ChartEditStorageType = await getSessionStorageInfo() as unknown as ChartEditStorageType setSessionStorage(StorageEnum.GO_CHART_STORAGE_LIST, [{ ...e.detail, id: localStorageInfo.id }]) key.value = Date.now()