CaIon 2 лет назад
Родитель
Сommit
7601610767
2 измененных файлов с 7 добавлено и 5 удалено
  1. 4 4
      web/package.json
  2. 3 1
      web/src/components/PersonalSetting.js

+ 4 - 4
web/package.json

@@ -4,9 +4,9 @@
   "private": true,
   "private": true,
   "dependencies": {
   "dependencies": {
     "@douyinfe/semi-ui": "^2.46.1",
     "@douyinfe/semi-ui": "^2.46.1",
-    "@visactor/vchart": "~1.7.2",
-    "@visactor/react-vchart": "~1.7.2",
-    "@visactor/vchart-semi-theme": "~1.7.2",
+    "@visactor/vchart": "~1.8.8",
+    "@visactor/react-vchart": "~1.8.8",
+    "@visactor/vchart-semi-theme": "~1.8.8",
     "axios": "^0.27.2",
     "axios": "^0.27.2",
     "history": "^5.3.0",
     "history": "^5.3.0",
     "marked": "^4.1.1",
     "marked": "^4.1.1",
@@ -54,5 +54,5 @@
     "singleQuote": true,
     "singleQuote": true,
     "jsxSingleQuote": true
     "jsxSingleQuote": true
   },
   },
-  "proxy": "http://localhost:3000"
+  "proxy": "https://nekoapi.com"
 }
 }

+ 3 - 1
web/src/components/PersonalSetting.js

@@ -397,7 +397,9 @@ const PersonalSetting = () => {
                                         ></Input>
                                         ></Input>
                                     </div>
                                     </div>
                                     <div>
                                     <div>
-                                        <Button onClick={()=>{setShowEmailBindModal(true)}} disabled={userState.user && userState.user.email !== ''}>绑定邮箱</Button>
+                                        <Button onClick={()=>{setShowEmailBindModal(true)}}>{
+                                            userState.user && userState.user.email !== ''?'修改绑定':'绑定邮箱'
+                                        }</Button>
                                     </div>
                                     </div>
                                 </div>
                                 </div>
                             </div>
                             </div>