bding 2 years ago
parent
commit
f7a0092bdb
1 changed files with 2 additions and 5 deletions
  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 = () => {