On this page
全局mixin权限验证实现
js
// 引入工具库
import $U from "@/common/free-lib/util.js";
export default {
onShow() {
let token = $U.getStorage("token");
if (!token) {
return uni.reLaunch({
url: "/pages/common/login/login",
});
}
},
};