main.js
@@ -10,7 +10,8 @@ showTips, getIndex, formattingUrls, setLabelColor setLabelColor, setFullUrl } from '@/common/common.js' Vue.config.productionTip = false; @@ -42,7 +43,7 @@ Vue.prototype.$getIndex = getIndex; Vue.prototype.$formattingUrls = formattingUrls; Vue.prototype.$setLabelColor = setLabelColor; Vue.prototype.$setFullUrl = setFullUrl // 公共函数 import globalFunc from '@/utils/func.js' Vue.use(globalFunc, app);