mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 16:35:53 +08:00
IM
This commit is contained in:
41
im/src/main.js
Normal file
41
im/src/main.js
Normal file
@@ -0,0 +1,41 @@
|
||||
import 'core-js/stable'
|
||||
import 'regenerator-runtime/runtime'
|
||||
|
||||
import Vue from 'vue'
|
||||
import App from '@/App'
|
||||
import store from '@/store'
|
||||
import router from '@/router'
|
||||
import MainMixin from './mixins/main-mixin'
|
||||
import face from '@/components/face'
|
||||
import faceNull from '@/components/face-null'
|
||||
import config from "@/config/config";
|
||||
import './core/lazy-use'
|
||||
import './core/global-component'
|
||||
import './core/filter'
|
||||
import './core/directives'
|
||||
import '@/permission'
|
||||
import '@/icons'
|
||||
|
||||
// 引入自定义全局css
|
||||
import '@/assets/css/global.less'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
Vue.mixin(MainMixin) // 引入mixins
|
||||
Vue.component('face',face)
|
||||
Vue.component('face-null',faceNull)
|
||||
|
||||
Vue.prototype.linkToGoods = function (goodsId, skuId) { // 跳转买家端商品
|
||||
console.log(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`)
|
||||
window.open(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
|
||||
};
|
||||
Vue.prototype.linkToStore = function (storeId) { // 跳转买家端商品
|
||||
console.log(`${config.PC_URL}/Merchant?id=${storeId}`)
|
||||
window.open(`${config.PC_URL}/Merchant?id=${storeId}`, '_blank')
|
||||
};
|
||||
const Instance = new Vue({
|
||||
router,
|
||||
store,
|
||||
mixins: [MainMixin],
|
||||
render: h => h(App),
|
||||
}).$mount('#app')
|
||||
export default Instance
|
||||
Reference in New Issue
Block a user