"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const common_vendor = require("./common/vendor.js"); const utils_http = require("./utils/http.js"); if (!Math) { "./pages/home/home.js"; "./pages/category/category.js"; "./pages/personal/personal.js"; "./pages/detail/detail.js"; } const _sfc_main = { onLaunch: function() { console.log("App Launch"); }, onShow: function() { console.log("App Show"); }, onHide: function() { console.log("App Hide"); }, methods: { async initLoginStatus() { try { common_vendor.index.showLoading({ title: "初始化中...", mask: true }); const success = await initLogin(); if (success) { console.log("登录状态初始化成功"); } else { throw new Error("登录状态初始化失败"); } } catch (error) { console.error("登录状态初始化失败:", error); common_vendor.index.showToast({ title: "自动登录失败,请手动登录", icon: "none" }); } finally { common_vendor.index.hideLoading(); } } } }; common_vendor.index.$http = utils_http.http; function createApp() { const app = common_vendor.createSSRApp(_sfc_main); app.config.globalProperties.$http = utils_http.http; return { app }; } createApp().app.mount("#app"); exports.createApp = createApp;