diff --git a/vue/src/page/globalSetting.vue b/vue/src/page/globalSetting.vue
new file mode 100644
index 0000000..e65ce11
--- /dev/null
+++ b/vue/src/page/globalSetting.vue
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+ (s)
+ 越小对网络压力越大
+
+
+
+ {{ user.username }}
+
+
+
+
+ 登出
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vue/src/store/useGlobalStore.ts b/vue/src/store/useGlobalStore.ts
index 92d793f..7f13bf9 100644
--- a/vue/src/store/useGlobalStore.ts
+++ b/vue/src/store/useGlobalStore.ts
@@ -1,4 +1,5 @@
import type { GlobalConf, UploadTaskSummary } from '@/api'
+import type { UserInfo } from '@/api/user'
import type { getAutoCompletedTagList } from '@/taskRecord/autoComplete'
import type { ReturnTypeAsync } from '@/util'
import { uniqueId } from 'lodash'
@@ -8,7 +9,7 @@ import { ref } from 'vue'
import { typedEventEmitter, type UniqueId, ID } from 'vue3-ts-util'
interface OtherTabPane {
- type: 'auto-upload' | 'task-record' | 'empty' | 'log-detail'
+ type: 'auto-upload' | 'task-record' | 'empty' | 'log-detail' | 'global-setting'
name: string
readonly key: string
}
@@ -39,6 +40,7 @@ export interface Tab extends UniqueId {
export const useGlobalStore = defineStore('useGlobalStore', () => {
const conf = ref
()
+ const user = ref()
const autoCompletedDirList = ref([] as ReturnTypeAsync)
const enableThumbnail = ref(true)
const stackViewSplit = ref(50)
@@ -76,12 +78,13 @@ export const useGlobalStore = defineStore('useGlobalStore', () => {
tabList.value.push(ID({ panes: [log], key: log.key }))
} else {
tab.key = log.key
- tab.panes.push(log)
+ tab.panes.push(log)
}
}
return {
+ user,
tabList,
conf,
autoCompletedDirList,
diff --git a/vue/src/taskRecord/taskOperation.vue b/vue/src/taskRecord/taskOperation.vue
deleted file mode 100644
index f671e2d..0000000
--- a/vue/src/taskRecord/taskOperation.vue
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
- (s)
- 越小对网络压力越大
-
-
-
-
-
-
-
\ No newline at end of file