main.js
@@ -8,7 +8,8 @@ import { setImageUrl, showTips, getIndex getIndex, formattingUrls } from '@/common/common.js' Vue.config.productionTip = false; @@ -37,7 +38,8 @@ Vue.prototype.$http = http Vue.prototype.$showTips = showTips; Vue.prototype.$setImageUrl = setImageUrl; Vue.prototype.$getIndex = getIndex Vue.prototype.$getIndex = getIndex; Vue.prototype.$formattingUrls = formattingUrls; // 公共函数 import globalFunc from '@/utils/func.js' Vue.use(globalFunc, app);