diff --git a/src/locales/en_GB.json b/src/locales/en_GB.json index 21be753..269014b 100644 --- a/src/locales/en_GB.json +++ b/src/locales/en_GB.json @@ -99,7 +99,16 @@ "errorMessage": "Duplicate database name" } }, - "serverTab": {}, + "serverTab": { + "emptyPage": { + "message0": "It's easier to use shortcut keys", + "message1": "Why don't you have a cup of milk tea?", + "message2": "It would be nice to have an ice cream", + "message3": "Welcome to communicate in Issues", + "message4": "If only I had a popsicle", + "message5": "empty ~" + } + }, "valueContent": { "index": { "runDialog": { diff --git a/src/locales/zh_CN.json b/src/locales/zh_CN.json index 8e964e8..a63de97 100644 --- a/src/locales/zh_CN.json +++ b/src/locales/zh_CN.json @@ -99,7 +99,16 @@ "errorMessage": "数据库名称重复" } }, - "serverTab": {}, + "serverTab": { + "emptyPage": { + "message0": "使用快捷键会更便捷呦", + "message1": "不如喝杯奶茶吧", + "message2": "吃个冰淇淋好像也不错", + "message3": "欢迎在Issues交流哦", + "message4": "要是吃个棒冰就好了", + "message5": "空空如也" + } + }, "valueContent": { "index": { "runDialog": { diff --git a/src/views/serverTab/emptyPage.vue b/src/views/serverTab/emptyPage.vue new file mode 100644 index 0000000..42e0844 --- /dev/null +++ b/src/views/serverTab/emptyPage.vue @@ -0,0 +1,49 @@ + + + diff --git a/src/views/serverTab/index.vue b/src/views/serverTab/index.vue index 64de627..0ca51e3 100644 --- a/src/views/serverTab/index.vue +++ b/src/views/serverTab/index.vue @@ -17,6 +17,9 @@ + + + @@ -25,6 +28,7 @@ import { computed, ComputedRef, reactive, watch } from 'vue' import { useStore } from 'vuex' import { serverTabType } from '@/store/modules/serverList' import KeyMenu from '@/views/keyMenu/index.vue' +import EmptyPage from './emptyPage.vue' const store = useStore() const state: { activeTab: string, closable: boolean } = reactive({