| | |
| | | }) |
| | | |
| | | const root = getRoot() |
| | | const workspaceId = computed(() => store.state.common.projectId) |
| | | const workspaceId = computed(() => store.state.common.projectId || localStorage.getItem(ELocalStorageKey.WorkspaceId)) |
| | | const deleteTip = ref(false) |
| | | const deleteWaylineId = ref<string>('') |
| | | const canRefresh = ref(true) |
| | |
| | | pagination.page++ |
| | | getWaylines() |
| | | }, 1000) |
| | | console.log(workspaceId.value) |
| | | }) |
| | | |
| | | function getWaylines () { |
| | |
| | | fileData.append('file', file, file.name) |
| | | await importKmzFile(workspaceId.value, fileData).then((res) => { |
| | | if (res.code === 0) { |
| | | message.success(`${file.name} file uploaded successfully`) |
| | | message.success(`${file.name} 文件上传成功`) |
| | | canRefresh.value = true |
| | | pagination.total = 0 |
| | | pagination.page = 1 |