From 5e16818f73f6d5a9e1be14e3bdca5ce4a19f04be Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Sat, 15 Dec 2018 09:42:16 +0800 Subject: [PATCH] util.db Former-commit-id: 85a4564a9c26d25680e068390a9dce8081ff8301 [formerly 85a4564a9c26d25680e068390a9dce8081ff8301 [formerly 85a4564a9c26d25680e068390a9dce8081ff8301 [formerly 85a4564a9c26d25680e068390a9dce8081ff8301 [formerly 0c90f29ccfaf0af85cfee68a37e127969e1f403b [formerly 81d2e7a8b5e7b94b6707f2f7165948c23cb8fe97]]]]] Former-commit-id: 4be8876f52078af7d2f09d5be200e14c4b103b9d Former-commit-id: 0206f4b4d31c60ce01c43ceead230b7a242d6671 Former-commit-id: ca9b786629bc220dc77090732ec55ef682a65749 [formerly edc8fe2a03ccb155face81d2caa41898ffcc43da] Former-commit-id: 9bcb79d27c3671cdf2efa9bc8bb3bc746b536f76 Former-commit-id: ca8fa5fae99b3c2f29982295366d3b57dbd69ea8 Former-commit-id: ada47bd1e953a2977d08741b07f6dfa7a43a4c0f Former-commit-id: f7ae61fb796145f9e7cdc39c161876e4b1a70c3c Former-commit-id: eba7ec27792eebd4cc8cde53318b952a92f86a06 --- package-lock.json.REMOVED.git-id | 2 +- src/libs/{db.js => util.db.js} | 0 src/libs/util.js | 12 ++++++----- src/pages/demo/playground/db/all/index.vue | 4 ++-- src/store/modules/d2admin/modules/db.js | 25 +++++++++++----------- 5 files changed, 22 insertions(+), 21 deletions(-) rename src/libs/{db.js => util.db.js} (100%) diff --git a/package-lock.json.REMOVED.git-id b/package-lock.json.REMOVED.git-id index 7347e8cb..cc2a0b82 100644 --- a/package-lock.json.REMOVED.git-id +++ b/package-lock.json.REMOVED.git-id @@ -1 +1 @@ -14be1e768a4e072ad8ea5ff5bfec5535088a3e4b \ No newline at end of file +71c7a0f0efd0c1c51288f45b81f5c519d81068cb \ No newline at end of file diff --git a/src/libs/db.js b/src/libs/util.db.js similarity index 100% rename from src/libs/db.js rename to src/libs/util.db.js diff --git a/src/libs/util.js b/src/libs/util.js index af73d10e..9711c6a9 100644 --- a/src/libs/util.js +++ b/src/libs/util.js @@ -1,8 +1,10 @@ -import log from './util.log.js' -import cookies from './util.cookies.js' +import cookies from './util.cookies' +import db from './util.db' +import log from './util.log' -let util = { +const util = { cookies, + db, log } @@ -23,10 +25,10 @@ util.open = function (url) { var a = document.createElement('a') a.setAttribute('href', url) a.setAttribute('target', '_blank') - a.setAttribute('id', 'd2admin-menu-link') + a.setAttribute('id', 'd2admin-link-temp') document.body.appendChild(a) a.click() - document.body.removeChild(document.getElementById('d2admin-menu-link')) + document.body.removeChild(document.getElementById('d2admin-link-temp')) } export default util diff --git a/src/pages/demo/playground/db/all/index.vue b/src/pages/demo/playground/db/all/index.vue index 02d7a711..e1de19c4 100644 --- a/src/pages/demo/playground/db/all/index.vue +++ b/src/pages/demo/playground/db/all/index.vue @@ -16,7 +16,7 @@