"use strict";
|
const common_vendor = require("../common/vendor.js");
|
function useHomeButton() {
|
const showHomeButton = common_vendor.ref(false);
|
const checkAutoLogin = (options) => {
|
common_vendor.index.__f__("log", "at stores/useHomeButton.js:8", options, "332");
|
if (options.sso) {
|
showHomeButton.value = true;
|
}
|
if (options.from === "autoLogin") {
|
showHomeButton.value = true;
|
}
|
};
|
const goHome = () => {
|
common_vendor.index.switchTab({ url: "/pages/index/index" });
|
};
|
return { showHomeButton, checkAutoLogin, goHome };
|
}
|
exports.useHomeButton = useHomeButton;
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/stores/useHomeButton.js.map
|