h5
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 lines
981 B

<script>
// import {
// ref,
// computed
// } from 'vue';
// import {
// useStore
// } from 'vuex';
// const store = useStore();
// onLaunch(() => {
// // checkNetwork(); // 监听网络状态
// });
// 检查网络状态 设置store里的网络状态变量
// 网络连接 且 不是2g 不是3g 才算是网络连接; 否则不是 将启用本地存储
// function checkNetwork() {
// uni.getNetworkType({
// success: ({ networkType }) => {
// this.setNetworkConnected(!(networkType === 'none' || networkType === '2g' || networkType === '3g'));
// },
// });
// // 监听网络状态的变化
// uni.onNetworkStatusChange(({ isConnected, networkType }) => {
// this.setNetworkConnected(isConnected && !(networkType === '2g' || networkType === '3g'));
// });
// }
</script>
<style lang="scss">
/*每个页面公共css */
@import "@/uni_modules/vk-uview-ui/index.scss";
@import '@/common/styles/iconfont.scss';
@import '@/common/styles/app.scss';
</style>