소스 검색

type: 关闭账号密码自动填充

chenlei 2 년 전
부모
커밋
6d365f7610
3개의 변경된 파일405개의 추가작업 그리고 320개의 파일을 삭제
  1. 3 0
      src/pages/Login/index.tsx
  2. 5 0
      src/pages/Weapon/create-or-edit/index.tsx
  3. 397 320
      yarn.lock

+ 3 - 0
src/pages/Login/index.tsx

@@ -62,6 +62,7 @@ export default function Login() {
               placeholder="请输入用户名"
               maxLength={15}
               bordered={false}
+              autoComplete="off"
             />
           </Form.Item>
           <Form.Item
@@ -69,12 +70,14 @@ export default function Login() {
             rules={[{ required: true, message: "请输入密码!" }]}
           >
             <Input.Password
+              name={Math.random().toString()}
               prefix={
                 <img className="icon-password" src={IconPassword} alt="密码" />
               }
               placeholder="请输入用户密码"
               maxLength={15}
               bordered={false}
+              autoComplete="new-password"
             />
           </Form.Item>
 

+ 5 - 0
src/pages/Weapon/create-or-edit/index.tsx

@@ -33,6 +33,7 @@ export default function HistoryCreateOrEdit() {
           file,
         },
       } = await weaponApi.getDetail(params.id as string);
+
       if (thumb) {
         rest.thumb = [
           {
@@ -79,6 +80,10 @@ export default function HistoryCreateOrEdit() {
       rest.id = params.id;
     }
 
+    if (thumb[0] && thumb[0].imgAttrs) {
+      rest.thumbInfo = (thumb[0].imgAttrs.width / thumb[0].imgAttrs.height).toFixed(2)
+    }
+
     await weaponApi.add({
       ...rest,
       thumb: thumb

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 397 - 320
yarn.lock