gree_leran/unpackage/dist/dev/mp-weixin/utils/Auth.js

12 lines
315 B
JavaScript

"use strict";
const common_vendor = require("../common/vendor.js");
var Admin = "rds-token";
function getToken() {
return common_vendor.index.getStorageSync(Admin);
}
function isLogin() {
return common_vendor.index.getStorageSync(Admin) ? true : false;
}
exports.getToken = getToken;
exports.isLogin = isLogin;