代码拉取完成,页面将自动刷新
import App from './App'
import store from '@/store'
//导航守卫
import {router,RouterMount} from './router.js' //路径换成自己的
Vue.use(router)
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
store,
...App
})
app.$mount()
// #endif
import uView from '@/node_modules/uview-ui'
Vue.use(uView)
// 引入请求封装,将app参数传递到配置中
require('./utils/request.js')(app)
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif
// //v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// // #ifdef H5
// RouterMount(app,router,'#app')
// // #endif
// // #ifndef H5
// app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// // #endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。