diff --git a/src/libs/db.js b/src/libs/db.js index 1c9db368..5f007739 100644 --- a/src/libs/db.js +++ b/src/libs/db.js @@ -7,7 +7,8 @@ const db = low(adapter) db.defaults({ themeActiveName: [], pageOpenedList: [], - updateNotify: [] + updateNotify: [], + username: [] }) .write() diff --git a/src/main.js b/src/main.js index 4c3fed76..c26f5080 100755 --- a/src/main.js +++ b/src/main.js @@ -100,6 +100,8 @@ new Vue({ this.getAllTagFromRoutes() }, mounted () { + // DB -> store 加载用户名 + this.$store.commit('d2adminUsernameLoad') // DB -> store 加载版本更新弹窗的设置 this.$store.commit('d2adminUpdateNotifyLoad') // DB -> store 加载主题 diff --git a/src/store/modules/d2admin.js.REMOVED.git-id b/src/store/modules/d2admin.js.REMOVED.git-id index 13527a7d..f30f3c91 100644 --- a/src/store/modules/d2admin.js.REMOVED.git-id +++ b/src/store/modules/d2admin.js.REMOVED.git-id @@ -1 +1 @@ -d778c730422f7b1f5003b5674b98394d12362a90 \ No newline at end of file +ef14650e0f14b8ee44068a90cf999ca7494864e6 \ No newline at end of file