| 12345678910111213141516171819202122232425262728293031323334 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const _sfc_main = {
- __name: "splash",
- setup(__props) {
- const loadingText = common_vendor.ref("正在加载...");
- common_vendor.onMounted(() => {
- initApp();
- });
- const initApp = async () => {
- try {
- loadingText.value = "检查登录状态...";
- if (true) {
- common_vendor.index.reLaunch({
- url: "/pages/index/index"
- });
- }
- } catch (error) {
- common_vendor.index.__f__("error", "at pages/splash/splash.vue:68", "初始化失败:", error);
- common_vendor.index.reLaunch({
- url: "/pages/login/login"
- });
- }
- };
- return (_ctx, _cache) => {
- return {
- a: common_vendor.t(loadingText.value)
- };
- };
- }
- };
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b5d3b004"]]);
- wx.createPage(MiniProgramPage);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/splash/splash.js.map
|