From 8b99a230d7ea9a0a67e4726b1f432047b491f859 Mon Sep 17 00:00:00 2001 From: Cindy Chang Date: Tue, 9 Jul 2024 13:53:20 +0800 Subject: [PATCH] TypeScript bugs fixed --- doc/structure.txt | 6 +++--- index.html | 2 +- src/components/AccountMenu/AcctMenu.vue | 2 +- src/components/Header.vue | 2 +- src/module/apiError.js | 4 ++-- src/stores/files.js | 2 +- src/types/vue-router.d.ts | 10 +++++----- .../AccountManagement/AccountAdmin/AccountAdmin.vue | 2 +- src/views/Files/Files.vue | 2 +- src/views/Login/Login.vue | 2 +- src/views/MainContainer.vue | 2 +- src/views/MemberArea/index.vue | 2 +- tsconfig.json | 5 ----- 13 files changed, 19 insertions(+), 24 deletions(-) diff --git a/doc/structure.txt b/doc/structure.txt index e697a65..98e2d52 100644 --- a/doc/structure.txt +++ b/doc/structure.txt @@ -135,7 +135,7 @@ frontend │ │ ├─ IconVector.vue │ │ ├─ IconWarnTriangle.vue │ │ └─ IconsFilter.vue -│ ├─ main.js // 程式進入點 +│ ├─ main.ts // 程式進入點 │ ├─ module // JavaScript 邏輯 │ │ ├─ abbreviateNumber.js │ │ ├─ alertModal.js // SweetAlert @@ -155,8 +155,8 @@ frontend │ │ ├─ conformance.js │ │ ├─ files.js │ │ ├─ loading.js -│ │ ├─ login.js -│ │ ├─ main.js +│ │ ├─ login.ts +│ │ ├─ main.ts │ │ └─ performance.js │ └─ views // 路由元件 │ ├─ AuthContainer.vue diff --git a/index.html b/index.html index f1b199f..0f1a1b6 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,6 @@
- + diff --git a/src/components/AccountMenu/AcctMenu.vue b/src/components/AccountMenu/AcctMenu.vue index 07e9f7d..858c50d 100644 --- a/src/components/AccountMenu/AcctMenu.vue +++ b/src/components/AccountMenu/AcctMenu.vue @@ -33,7 +33,7 @@ import { computed, } from 'vue'; import { mapActions, mapState, storeToRefs } from 'pinia'; import i18next from '@/i18n/i18n'; -import LoginStore from '@/stores/login.js'; +import LoginStore from '@/stores/login.ts'; import AcctMgmtStore from '@/stores/acctMgmt'; import AllMapDataStore from '@/stores/allMapData.js'; import ConformanceStore from '@/stores/conformance.js'; diff --git a/src/components/Header.vue b/src/components/Header.vue index 29a502e..399ee3c 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -20,7 +20,7 @@