Showing
1 changed file
with
3 additions
and
0 deletions
| @@ -104,6 +104,7 @@ | @@ -104,6 +104,7 @@ | ||
| 104 | import { Alert, Divider, Descriptions, Upload } from 'ant-design-vue'; | 104 | import { Alert, Divider, Descriptions, Upload } from 'ant-design-vue'; |
| 105 | import { uploadApi } from '/@/api/personal/index'; | 105 | import { uploadApi } from '/@/api/personal/index'; |
| 106 | import { useMessage } from '/@/hooks/web/useMessage'; | 106 | import { useMessage } from '/@/hooks/web/useMessage'; |
| 107 | + import { buildUUID } from '/@/utils/uuid'; | ||
| 107 | 108 | ||
| 108 | export default defineComponent({ | 109 | export default defineComponent({ |
| 109 | components: { | 110 | components: { |
| @@ -343,6 +344,8 @@ | @@ -343,6 +344,8 @@ | ||
| 343 | credentialsV.credentials.certFileName = certFileName.value; | 344 | credentialsV.credentials.certFileName = certFileName.value; |
| 344 | credentialsV.credentials.privateKeyFileName = privateKeyFileName.value; | 345 | credentialsV.credentials.privateKeyFileName = privateKeyFileName.value; |
| 345 | } | 346 | } |
| 347 | + //clientId 从uuid里切片8位 | ||
| 348 | + sonValues.configuration.clientId = buildUUID().slice(0, 8); | ||
| 346 | Object.assign(sonValues.configuration, credentialsV); | 349 | Object.assign(sonValues.configuration, credentialsV); |
| 347 | return sonValues; | 350 | return sonValues; |
| 348 | }; | 351 | }; |