zs 1 năm trước cách đây
mục cha
commit
7e4a174809

+ 0 - 1
pages.json

@@ -178,7 +178,6 @@
 		"selectedColor": "#2979ff",
 		"borderStyle": "black",
 		"backgroundColor": "#ffffff",
-		"fontSize": "14px",
 		"list": [{
 				"pagePath": "pages/home/index",
 				"iconPath": "static/homeHL.png",

+ 8 - 8
pages/index/index.vue

@@ -20,14 +20,14 @@
 	})
 	// config信息
 	const searchConfig = async () => {
-		// let res = await $api(`config`, 'GET', {});
-		// if (res.errcode == 0) {
-		// 	config.value = res.data
-		// 	uni.setStorage({
-		// 		key: 'config',
-		// 		data: res.data,
-		// 	})
-		// }
+		let res = await $api(`config`, 'GET', {});
+		if (res.errcode == 0) {
+			config.value = res.data
+			uni.setStorage({
+				key: 'config',
+				data: res.data,
+			})
+		}
 	};
 	// 查询
 	const search = async () => {

BIN
static/logo.png


+ 9 - 1
unpackage/dist/dev/mp-weixin/pages/index/index.js

@@ -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({

BIN
unpackage/dist/dev/mp-weixin/static/logo.png