bding %!s(int64=2) %!d(string=hai) anos
pai
achega
f7a0092bdb
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      src/views/cygx/isTrackFollow.vue

+ 2 - 5
src/views/cygx/isTrackFollow.vue

@@ -49,7 +49,7 @@ const show = ref(false);
 const followInfoHandler = () => {
   show.value = true;
 };
- // 取消或者添加关注
+// 取消或者添加关注
 const isFollowHandler = async () => {
   const res = await RaiApi.userIndustryFollow({
     SourceId: props.sourceId,
@@ -57,12 +57,9 @@ const isFollowHandler = async () => {
     DoType: props.isFollowData ? "cancel" : "add",
   });
   if (res.Ret === 200) {
-    uni.showToast({
-      title: res.Msg,
-      duration: 2000,
-    });
     emits("update:isFollowData", res.Data.Status == 1 ? true : false);
   }
+  Toast(res.Msg);
 };
 // 关闭弹框
 const onClickHide = () => {