mirror of https://github.com/halo-dev/halo
fix: page refresh and jump to login page.
parent
8b396df1a1
commit
a188771b46
|
@ -1,10 +1,3 @@
|
||||||
const plugins = []
|
|
||||||
plugins.push(['import', {
|
|
||||||
'libraryName': 'ant-design-vue',
|
|
||||||
'libraryDirectory': 'es',
|
|
||||||
'style': true // `style: true` 会加载 less 文件
|
|
||||||
}])
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [
|
presets: [
|
||||||
'@vue/app',
|
'@vue/app',
|
||||||
|
@ -14,6 +7,5 @@ module.exports = {
|
||||||
'useBuiltIns': 'entry'
|
'useBuiltIns': 'entry'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
],
|
]
|
||||||
plugins
|
|
||||||
}
|
}
|
|
@ -4,9 +4,12 @@ import config from '@/config/defaultSettings'
|
||||||
|
|
||||||
// base library
|
// base library
|
||||||
import '@/core/lazy_lib/components_use'
|
import '@/core/lazy_lib/components_use'
|
||||||
// import 'ant-design-vue/dist/antd.less'
|
import 'ant-design-vue/dist/antd.less'
|
||||||
|
import bootstrap from './bootstrap'
|
||||||
|
|
||||||
import VueClipboard from 'vue-clipboard2'
|
import VueClipboard from 'vue-clipboard2'
|
||||||
|
|
||||||
Vue.use(VueStorage, config.storageOptions)
|
Vue.use(VueStorage, config.storageOptions)
|
||||||
Vue.use(VueClipboard)
|
Vue.use(VueClipboard)
|
||||||
|
|
||||||
|
bootstrap()
|
||||||
|
|
|
@ -5,7 +5,6 @@ import router from './router'
|
||||||
import store from './store/'
|
import store from './store/'
|
||||||
import './logger'
|
import './logger'
|
||||||
|
|
||||||
import bootstrap from './core/bootstrap'
|
|
||||||
import './core/lazy_use'
|
import './core/lazy_use'
|
||||||
import './permission'
|
import './permission'
|
||||||
import '@/utils/filter' // global filter
|
import '@/utils/filter' // global filter
|
||||||
|
@ -20,6 +19,5 @@ Vue.use(router)
|
||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
store,
|
store,
|
||||||
created: bootstrap,
|
|
||||||
render: h => h(App)
|
render: h => h(App)
|
||||||
}).$mount('#app')
|
}).$mount('#app')
|
||||||
|
|
Loading…
Reference in New Issue