lanjianrong 4 tahun lalu
induk
melakukan
b89f9fafcd

+ 4 - 4
deploy.config.js

@@ -5,8 +5,8 @@ module.exports = {
     port: 22,
     username: 'zongheng',
     password: 'SmartCost#*%)888',
-    localPath: 'dist',
-    remotePath: '/mnt/html/management',
+    localPath: 'build',
+    remotePath: '/mnt/html/management/',
     needEmail: false,
     addressee: '',
     title: '',
@@ -18,8 +18,8 @@ module.exports = {
     port: 22,
     username: 'root',
     password: 'SmartCost3850888',
-    localPath: 'dist',
-    remotePath: '/mnt/html/management',
+    localPath: 'build',
+    remotePath: '/mnt/html/management/',
     needEmail: false,
     addressee: '',
     title: '',

+ 1 - 1
src/components/Menu/index.tsx

@@ -60,7 +60,7 @@ const NavSider: React.FC<iMenuProps> = (props) => {
                   </Menu>
                 )
               }} trigger={[ 'click' ]} placement="topRight">
-                <Button size="small" className={styles.bottomBtn}>{userStore.menuBtnText}</Button>
+                <Button size="small" className={styles.bottomBtn}>{userStore.menuBtnText?.slice(-3)}</Button>
               </Dropdown>
             </div>
           </div>

+ 1 - 1
src/pages/Account/Safe/index.tsx

@@ -35,7 +35,7 @@ export default function Index() {
               if (/(?=.*[0-9])(?=.*[a-zA-Z]).{6,30}/.test(value)) {
                 return Promise.resolve()
               } else {
-                return Promise.reject('密码必须带有字母与数字的组合且大于6位')
+                return Promise.reject('密码必须带有字母与数字的组合且大于或等于6位')
               }
             }
           }) ]}>

+ 1 - 0
src/store/mobx/user/index.ts

@@ -65,6 +65,7 @@ class UserState {
 
   @action updateUserInfo(values: any) {
     this.userInfo = { ...this.userInfo, ...values }
+    saveUserInfo(this.userInfo)
   }
 
   @action toggleLeftSide() {