diff --git a/src/libs/db.js b/src/libs/db.js index 786be3f9..fed5597a 100644 --- a/src/libs/db.js +++ b/src/libs/db.js @@ -2,7 +2,7 @@ import low from 'lowdb' import LocalStorage from 'lowdb/adapters/LocalStorage' import setting from '@/setting.js' -const adapter = new LocalStorage(`d2admin-${setting.version}`) +const adapter = new LocalStorage(`d2admin-${setting.releases.version}`) const db = low(adapter) // 初始化数据库 diff --git a/src/menu/modules/demo-playground.js b/src/menu/modules/demo-playground.js index 97cb54be..85b1d860 100644 --- a/src/menu/modules/demo-playground.js +++ b/src/menu/modules/demo-playground.js @@ -43,7 +43,11 @@ export default { children: [ { path: `${pre}db/all`, title: '全部数据', icon: 'table' }, { path: `${pre}db/user`, title: '用户数据', icon: 'user' }, - { path: `${pre}db/public`, title: '公用数据', icon: 'users' } + { path: `${pre}db/public`, title: '公用数据', icon: 'users' }, + { path: `${pre}db/page-public`, title: '页面存储', icon: 'file-o' }, + { path: `${pre}db/page-user`, title: '页面存储 用户', icon: 'file-o' }, + { path: `${pre}db/page-snapshot-public`, title: '页面快照', icon: 'file' }, + { path: `${pre}db/page-snapshot-user`, title: '页面快照 用户', icon: 'file' } ] }, { diff --git a/src/pages/demo/playground/db/page-public/index.vue b/src/pages/demo/playground/db/page-public/index.vue new file mode 100644 index 00000000..b357ef27 --- /dev/null +++ b/src/pages/demo/playground/db/page-public/index.vue @@ -0,0 +1,127 @@ + + + diff --git a/src/pages/demo/playground/db/page-snapshot-public/index.vue b/src/pages/demo/playground/db/page-snapshot-public/index.vue new file mode 100644 index 00000000..b45bbb0f --- /dev/null +++ b/src/pages/demo/playground/db/page-snapshot-public/index.vue @@ -0,0 +1,111 @@ + + + diff --git a/src/pages/demo/playground/db/page-snapshot-user/index.vue b/src/pages/demo/playground/db/page-snapshot-user/index.vue new file mode 100644 index 00000000..0898f95e --- /dev/null +++ b/src/pages/demo/playground/db/page-snapshot-user/index.vue @@ -0,0 +1,111 @@ + + + diff --git a/src/pages/demo/playground/db/page-user/index.vue b/src/pages/demo/playground/db/page-user/index.vue new file mode 100644 index 00000000..1632cc91 --- /dev/null +++ b/src/pages/demo/playground/db/page-user/index.vue @@ -0,0 +1,132 @@ + + + diff --git a/src/pages/demo/playground/db/user/index.vue b/src/pages/demo/playground/db/user/index.vue index 184d8de2..0504fc0b 100644 --- a/src/pages/demo/playground/db/user/index.vue +++ b/src/pages/demo/playground/db/user/index.vue @@ -1,6 +1,6 @@