1 Star 0 Fork 67

风之影sky/ThorUI-uniapp

forked from Eve996/ThorUI-uniapp 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
main.js 783 Bytes
Copy Edit Raw Blame History
echo0214 authored 2022-02-24 20:23 . V1.7.2更新
import App from './App'
import store from './store'
import tui from './common/httpRequest'
// #ifdef H5
window.QQmap = null;
// #endif
// #ifndef MP-TOUTIAO
//网络监听
setTimeout(() => {
uni.onNetworkStatusChange(function(res) {
//console.log(res.networkType);
store.commit("networkChange", {
isConnected: res.isConnected
})
});
}, 100)
// #endif
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
Vue.prototype.tui = tui
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
store,
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
app.use(store)
app.config.globalProperties.tui = tui;
return {
app
}
}
// #endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sky8652/ThorUI-uniapp.git
git@gitee.com:sky8652/ThorUI-uniapp.git
sky8652
ThorUI-uniapp
ThorUI-uniapp
master

Search