|
@@ -8,17 +8,16 @@ import "@/style/global.scss";//全局样式
|
|
|
import 'normalize.css'
|
|
|
import {drag} from "./directive/drag"
|
|
|
import '@/utils/interceptRouterMethod.js' //重写router方法模块
|
|
|
+import reportErr from '@/utils/reportErr'
|
|
|
import VConsole from 'vconsole';
|
|
|
|
|
|
if(import.meta.env.MODE==='test'){
|
|
|
const vConsole = new VConsole();
|
|
|
}
|
|
|
|
|
|
-console.log('测试下新发布平台');
|
|
|
-
|
|
|
const app = createApp(App)
|
|
|
app.directive('drag', drag)
|
|
|
-
|
|
|
+reportErr(app)//设置全局错误上报
|
|
|
app.use(ElementPlus)
|
|
|
app.use(router)
|
|
|
app.use(store)
|