فهرست منبع

添加更新消息提醒设置。

tianyunperfect 4 سال پیش
والد
کامیت
6aa7f2881c
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/pages/Setting/index.tsx

+ 2 - 2
src/pages/Setting/index.tsx

@@ -80,7 +80,7 @@ const TableList: React.FC<{}> = () => {
   };
 
   const updatePushUrl = (values: PushChange) => {
-    values["noteUrl"] = encodeURI(values["noteUrl"]);
+    values["noteUrl"] = values["noteUrl"];
     service.updatePushUrl(values).then(res => {
       if (res.success) {
         message.success("更新成功");
@@ -106,7 +106,7 @@ const TableList: React.FC<{}> = () => {
   useEffect(() => {
     service.queryPushUrl({}).then(res => {
       if (res.success) {
-        noteForm.setFieldsValue({"noteUrl": decodeURI(res.data)});
+        noteForm.setFieldsValue({"noteUrl": res.data});
       } else {
         message.error('获取url失败!');
       }