Commit 96738d8f authored by lipengcheng 's avatar lipengcheng

引入uitls

parent 0be858bb
......@@ -23,6 +23,9 @@ module.exports = {
* "warn" 或 1 - 开启规则,使用警告级别的错误:warn (不会导致程序退出)
* "error" 或 2 - 开启规则,使用错误级别的错误:error (当被触发的时候,程序会退出)
*/
globals: {
window: true
},
rules: {
// 会报各种奇怪的错误 如:error: Delete ⏎ (prettier/prettier) at src/pages/xxx 等;
// 这是因为prettier配置和编辑器prettier配置冲突导致的 在下面配置覆盖掉就可以了
......@@ -80,6 +83,8 @@ module.exports = {
singleline: 'never',
multiline: 'never'
}
]
],
// 去掉空白报错
'no-irregular-whitespace': 'off'
}
}
......@@ -12,6 +12,7 @@ import layoutComponents from '@/components/layout/index.js'
import globalComponents from '@/components/global/index.js'
import filters from '@/filters/index.js'
import directives from '@/directives/index.js'
import utils from '@/utils/index.js'
// 全局注册layout组件
Vue.use(layoutComponents)
// 注册自定义全局组件
......@@ -29,6 +30,7 @@ console.log('baseURL:', baseURL)
Vue.config.productionTip = false
Vue.prototype.$http = axios
Vue.prototype.$mt = moment
Vue.prototype.$ = utils
new Vue({
router,
......
This diff is collapsed.
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