Browse Source

测试代码

liudan 1 year ago
parent
commit
5fb77b72e1
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/pages/home/Index.jsx

+ 9 - 0
src/pages/home/Index.jsx

@@ -291,6 +291,15 @@ class Home extends React.Component {
         }, () => {
           this.soundPaly();
         });
+        Toast.show({
+          duration: 10000,
+          content: '播放完成',
+        });
+      }else {
+        Toast.show({
+          duration: 10000,
+          content: '播放失败',
+        });
       }
     };
   }