init
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 898 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 943 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 862 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
@@ -0,0 +1,17 @@
|
||||
import store from '@/store'
|
||||
export default {
|
||||
install(Vue, options) {
|
||||
if(options.developmentOff && process.env.NODE_ENV === 'development') return;
|
||||
// Vue.config.errorHandler = (error, vm, mes) => {
|
||||
// let info = {
|
||||
// type: 'script',
|
||||
// code: 0,
|
||||
// mes: error.message,
|
||||
// url: window.location.href
|
||||
// };
|
||||
// Vue.nextTick(() => {
|
||||
// store.dispatch('addErrorLog', info)
|
||||
// })
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import config from '@/config'
|
||||
const { plugin } = config;
|
||||
|
||||
export default (Vue) => {
|
||||
for (let name in plugin) {
|
||||
const value = plugin[name];
|
||||
Vue.use(require(`./${name}`).default, typeof value === 'object' ? value : undefined)
|
||||
}
|
||||
}
|
||||