1.静态页面: 首页 个人中心 登录 注册账号 忘记重置密码 2.引入vuex 加入http请求工具luch-request并设置请求和响应过滤器

This commit is contained in:
sfmind
2022-04-10 01:21:21 +08:00
parent 9709f200c2
commit 7fd8e0dd6c
25 changed files with 1212 additions and 56 deletions

View File

@ -1,26 +1,24 @@
import Vue from 'vue'
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
// vuex
import store from './store'
//引入并使用uView的JS库
Vue.config.productionTip = false
Vue.prototype.$store = store
// 引入全局uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
Vue.use(uView)
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif
const app = new Vue({
store,
...App
})
// 引入请求封装
require('./util/request/index')(app)
app.$mount()