浏览代码

[edit][bug]

zhangwei 3 年之前
父节点
当前提交
df4fd513f9
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/view/red-packet.vue

+ 4 - 2
src/view/red-packet.vue

@@ -386,6 +386,7 @@ function init() {
       postId: data.postId
     }
   }).then((res) => {
+    initTaskDetail()
     switch (res.code.toString()) {
       case "0":
         data.srcContentId = res.data.srcContentId
@@ -436,8 +437,9 @@ function init() {
         break
     }
   })
-
-  // 任务详情
+}
+function initTaskDetail(){
+    // 任务详情
   getTaskDetail({
     params: {
       postId: data.postId