From 4bcc6e7396d11aff2cfa2f9d826d9319833972a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com> Date: Thu, 25 Jan 2018 20:26:12 +0800 Subject: [PATCH] no message Former-commit-id: 00d87165be5ec4f3962f7ac6094b2d2376fcffb8 Former-commit-id: a7f88602f7367789a9e0ba08823d6e6d996d1b41 Former-commit-id: e77ca1056c8f98e206f5ceef867ee3e97ae784a8 --- src/main.js | 4 ++++ src/plugin/d2Admin/index.js | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/plugin/d2Admin/index.js diff --git a/src/main.js b/src/main.js index 6884f154..ab57ef6f 100755 --- a/src/main.js +++ b/src/main.js @@ -29,8 +29,12 @@ import '@/mock/index.js' // vuex import store from '@/store/index.js' +import d2Admin from '@/plugin/d2Admin' + Vue.use(ElementUI) +Vue.use(d2Admin) + Vue.config.productionTip = false /* eslint-disable no-new */ diff --git a/src/plugin/d2Admin/index.js b/src/plugin/d2Admin/index.js new file mode 100644 index 00000000..9e267962 --- /dev/null +++ b/src/plugin/d2Admin/index.js @@ -0,0 +1,9 @@ +export default { + install (Vue, options) { + Vue.mixin({ + created () { + console.log('hahaha') + } + }) + } +}