Selaa lähdekoodia

开发者设置修改设置密钥字段

dujingxian 4 vuotta sitten
vanhempi
commit
d9a098f394
2 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 1 1
      src/api/index.js
  2. 5 5
      src/pages/subPages/view.vue

+ 1 - 1
src/api/index.js

@@ -28,7 +28,7 @@ axios.interceptors.request.use(
 
 axios.interceptors.response.use(
     res => {
-        console.log('响应res', res);
+        // console.log('响应res', res);
         // loading.close();
         if (res.data.code == 200) {
             return res.data;

+ 5 - 5
src/pages/subPages/view.vue

@@ -23,10 +23,10 @@
         <el-form-item label="余额预警:">
             {{alarm_amount}}
         </el-form-item>
-        <el-form-item label="密钥设置:" :prop="isKey == '1' ? 'ReSecurityKey' : 'securityKey'">
-            <el-input v-if="isKey == '1'" v-model="formKey.ReSecurityKey" autocomplete="off" style="width: 300px;margin-right:10px"></el-input>
+        <el-form-item label="密钥设置:" :prop="useKey == '1' ? 'ReSecurityKey' : 'securityKey'">
+            <el-input v-if="useKey == '1'" v-model="formKey.ReSecurityKey" autocomplete="off" style="width: 300px;margin-right:10px"></el-input>
             <el-input v-else v-model="formKey.securityKey" autocomplete="off" style="width: 300px;margin-right:10px"></el-input>
-            <el-button type="primary" size="small" @click="updateKey">{{isKey == '1' ? '重设' : '设置'}}</el-button>
+            <el-button type="primary" size="small" @click="updateKey">{{useKey == '1' ? '重设' : '设置'}}</el-button>
             <el-alert
                 title="请输入数字,字母或者两者结合的字符作为密钥。用于接口对接时生成签名"
                 type="info"
@@ -125,7 +125,7 @@ export default {
                 ]
             },
             // 是否设置过密钥 1-设置过
-            isKey: ''
+            useKey: ''
         };
     },
     created() {
@@ -221,7 +221,7 @@ export default {
                 this.merchantsName = res.datas.name
                 this.ipList = res.datas.ips
                 this.alarm_amount = res.datas.alarm_amount
-                this.isKey = res.datas.is_key
+                this.useKey = res.datas.use_key
             }
         },
         // 设置密钥