|
@@ -43,6 +43,7 @@
|
|
const fileFlow = reactive({
|
|
const fileFlow = reactive({
|
|
file: null,
|
|
file: null,
|
|
id: '',
|
|
id: '',
|
|
|
|
+ key: '',
|
|
type: 'down', //down-下载,equity-权益
|
|
type: 'down', //down-下载,equity-权益
|
|
});
|
|
});
|
|
const { createMessage, createConfirm, createSuccessModal } = useMessage();
|
|
const { createMessage, createConfirm, createSuccessModal } = useMessage();
|
|
@@ -92,6 +93,7 @@
|
|
async function onDataReceive(data) {
|
|
async function onDataReceive(data) {
|
|
resetFields();
|
|
resetFields();
|
|
fileFlow.id = data.id;
|
|
fileFlow.id = data.id;
|
|
|
|
+ fileFlow.key = data.authorizeKey;
|
|
updateSchema([
|
|
updateSchema([
|
|
{
|
|
{
|
|
field: 'useType',
|
|
field: 'useType',
|
|
@@ -148,13 +150,13 @@
|
|
createSuccessModal({
|
|
createSuccessModal({
|
|
title: t('layout.setting.operatingTitle'),
|
|
title: t('layout.setting.operatingTitle'),
|
|
content: h('div', {}, [
|
|
content: h('div', {}, [
|
|
- h('p', `安装Key:${res.authorizeKey}`),
|
|
|
|
|
|
+ h('p', `安装Key:${res.authorizeKey || fileFlow.key}`),
|
|
h('p', `授权相机数量:${count.length}`),
|
|
h('p', `授权相机数量:${count.length}`),
|
|
]),
|
|
]),
|
|
okText: '复制授权Key',
|
|
okText: '复制授权Key',
|
|
onOk: async () => {
|
|
onOk: async () => {
|
|
// 双击复制
|
|
// 双击复制
|
|
- copyTextToClipboard(res.authorizeKey);
|
|
|
|
|
|
+ copyTextToClipboard(res.authorizeKey || fileFlow.key);
|
|
createMessage.success('复制成功');
|
|
createMessage.success('复制成功');
|
|
},
|
|
},
|
|
});
|
|
});
|