Browse Source

首页修改

wangcy 4 months ago
parent
commit
23e2a93c3d

+ 8 - 1
commons/basic/src/main/ets/models/index.ets

@@ -30,4 +30,11 @@ export enum Role {
   USER,
   OTHER,
   CARD
-}
+}
+
+/**
+ * @description 结果回调函数的类型别名
+ * @param res 结果输出
+ * @param err 错误输出
+ */
+export type ResultCallBack<T> = (res?: T, err?: Error) => void

+ 2 - 1
products/entry/src/main/ets/pages/Index.ets

@@ -1,4 +1,5 @@
 import { BasicType, YtAvoid, yTRouter, yTToast } from 'basic';
+import { Mine } from 'user';
 
 @Entry
 @Component
@@ -47,7 +48,7 @@ struct Index {
               } else if (index == 2) {
                 Text(_.text)
               } else {
-                Text(_.text)
+                Mine()
               }
             }
           })