Browse Source

铸成goview

master
songguoqiang 11 months ago
parent
commit
5f7a790872
  1. 6
      .env.test
  2. 2
      src/views/preview/wrapper.vue

6
.env.test

@ -1,8 +1,8 @@
# port # port
VITE_DEV_PORT = '8080' VITE_DEV_PORT = '26111'
# production path # 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 VITE_APP_TENANT_ENABLE=false

2
src/views/preview/wrapper.vue

@ -16,7 +16,7 @@ let key = ref(Date.now())
// -> // ->
;[SavePageEnum.JSON, SavePageEnum.CHART].forEach((saveEvent: string) => { ;[SavePageEnum.JSON, SavePageEnum.CHART].forEach((saveEvent: string) => {
if (!window.opener) return 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 const localStorageInfo: ChartEditStorageType = await getSessionStorageInfo() as unknown as ChartEditStorageType
setSessionStorage(StorageEnum.GO_CHART_STORAGE_LIST, [{ ...e.detail, id: localStorageInfo.id }]) setSessionStorage(StorageEnum.GO_CHART_STORAGE_LIST, [{ ...e.detail, id: localStorageInfo.id }])
key.value = Date.now() key.value = Date.now()

Loading…
Cancel
Save