环境: uniapp 框架
weapp-cookie
在main.js里面引入 weapp-cookie
import Vue from 'vue'
import App from './App'
import store from './store'
import 'weapp-cookie'
Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
store,
...App
})
app.$mount()