18 Star 239 Fork 67

Eve996 / ThorUI-uniapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 894 Bytes
一键复制 编辑 原始数据 按行查看 历史
echo0214 提交于 2023-05-18 14:29 . V2.8.0更新
import App from './App'
import store from './store'
import tui from './common/httpRequest'
import propsConfig from './components/thorui/tui-config/index.js'
//全局组件配置
uni.$tui = propsConfig
// #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
1
https://gitee.com/echo0927/ThorUI-uniapp.git
git@gitee.com:echo0927/ThorUI-uniapp.git
echo0927
ThorUI-uniapp
ThorUI-uniapp
master

搜索帮助