uni-app H5 頁面 debug
nvue + vue
-
nvue 登錄頁,不支持 H5 登錄
-
nvue 不支持 H5 debug
solution
- 繞過 nvue 登錄頁, 直接重定向到 vue H5 頁面
home.vue
<template>
<view>
</view>
</template>
<script>
export default {
onLoad() {
this.redirectUrl();
},
methods: {
// redirectUrl () {
// this.userInfo = uni.getStorageSync('userInfo');
// if (!!this.userInfo) {
// uni.redirectTo({
// url: '/pages/table/data/global/index',
// });
// } else {
// uni.redirectTo({
// url: '/pages/user/login/index',
// })
// }
// },
redirectUrl () {
uni.redirectTo({
url: '/pages/table/data/global/index',
});
}
}
}
</script>
<style>
</style>
- 內置瀏覽器
CORS bug
refs
©xgqfrms 2012-2020
www.cnblogs.com 發布文章使用:只允許注冊用戶才可以訪問!
原創文章,版權所有©️xgqfrms, 禁止轉載 🈲️,侵權必究⚠️!