|
@@ -4,7 +4,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
__name: "index",
|
|
|
setup(__props) {
|
|
|
var _a, _b, _c;
|
|
|
- (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
|
|
|
+ const $api = (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
|
|
|
(_b = common_vendor.getCurrentInstance()) == null ? void 0 : _b.appContext.config.globalProperties.$app;
|
|
|
(_c = common_vendor.getCurrentInstance()) == null ? void 0 : _c.appContext.config.globalProperties.$config;
|
|
|
const config = common_vendor.ref({ logo: [] });
|
|
@@ -13,6 +13,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
await search();
|
|
|
});
|
|
|
const searchConfig = async () => {
|
|
|
+ let res = await $api(`config`, "GET", {});
|
|
|
+ if (res.errcode == 0) {
|
|
|
+ config.value = res.data;
|
|
|
+ common_vendor.index.setStorage({
|
|
|
+ key: "config",
|
|
|
+ data: res.data
|
|
|
+ });
|
|
|
+ }
|
|
|
};
|
|
|
const search = async () => {
|
|
|
common_vendor.index.reLaunch({
|