3 Star 58 Fork 20

derekerrr/dchat_web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.js 440 Bytes
一键复制 编辑 原始数据 按行查看 历史
derekerrr 提交于 2022-05-05 23:19 +08:00 . init
import App from './App'
//引入vuex
import store from './store'
//把vuex定义成全局组件
Vue.prototype.$store = store
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App,
//挂载
store
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/derekerrr/dchat_web.git
git@gitee.com:derekerrr/dchat_web.git
derekerrr
dchat_web
dchat_web
master

搜索帮助