"use strict"; const common_vendor = require("../common/vendor.js"); var Admin = "token"; function setToken(token) { common_vendor.index.setStorageSync(Admin, 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; exports.setToken = setToken;