48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const _sfc_main = {
|
|
__name: "exit",
|
|
props: {
|
|
show: {
|
|
type: Boolean,
|
|
default: true
|
|
}
|
|
},
|
|
emits: ["close"],
|
|
setup(__props, { emit: __emit }) {
|
|
const props = __props;
|
|
const donghua = common_vendor.ref(false);
|
|
common_vendor.watch(
|
|
() => props.show,
|
|
(newVal, oldVal) => {
|
|
if (!oldVal && newVal) {
|
|
donghua.value = false;
|
|
setTimeout(() => donghua.value = true, 50);
|
|
}
|
|
}
|
|
);
|
|
const emit = __emit;
|
|
function handleClose() {
|
|
emit("close");
|
|
}
|
|
const go = () => {
|
|
common_vendor.index.setStorageSync("token", 1);
|
|
plus.runtime.quit();
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.o(handleClose),
|
|
b: common_vendor.o(handleClose),
|
|
c: common_vendor.o(go),
|
|
d: common_vendor.o(() => {
|
|
}),
|
|
e: common_vendor.n(donghua.value ? "is-active" : ""),
|
|
f: __props.show
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-af075e65"]]);
|
|
wx.createComponent(Component);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/component/public/exit.js.map
|