Commit f5fed590 authored by 何虹's avatar 何虹 💬

升级调试

parent 524212b7
import Vue from 'vue' import Vue from 'vue'
window.Vue=Vue
import App from './App.vue' import App from './App.vue'
import './packages/index' import './packages/index'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
......
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
import index from './index.vue' import index from './index.vue'
index.install = Vue => Vue.component(index.name, index); index.install = function (Vue) {
if (typeof window !== 'undefined' && window.Vue) { Vue.component(index.name, index)
window.Vue.use(index);
} }
export default index export default index
\ No newline at end of file
...@@ -59,19 +59,16 @@ const components = [ ...@@ -59,19 +59,16 @@ const components = [
hsAction hsAction
] ]
const install = function (Vue, opts = {}) { const install = function(Vue) {
components.map(component => { components.forEach(component => {
Vue.component(component.name, component); Vue.component(component.name, component);
}) });
} }
/* 支持使用标签的方式引入 */ /* 支持使用标签的方式引入 */
if (typeof window !== 'undefined') { if (typeof window !== 'undefined' && window.Vue||Vue) {
debugger
install(window.Vue||Vue); install(window.Vue||Vue);
} }
export default { export default {
install, install,
hsTree, hsTree,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment