Introducing new features. 修改账号接入增加复制链接

This commit is contained in:
aeizzz 2023-03-02 18:11:28 +08:00
parent 5daaafdd4d
commit 392b44264b
2 changed files with 9 additions and 8 deletions

View File

@ -38,8 +38,9 @@ export default {
}, },
watch: {}, watch: {},
computed: { computed: {
// eslint-disable-next-line vue/return-in-computed-property
text() { text() {
if (this.num != undefined) { if (this.num !== undefined) {
return `+${this.num}`; return `+${this.num}`;
} else { } else {
if (this.name) { if (this.name) {

View File

@ -70,13 +70,11 @@
<form-dialog ref="formDialogRef" @refresh="getDataList(false)"/> <form-dialog ref="formDialogRef" @refresh="getDataList(false)"/>
<el-dialog v-model="dialogFormVisible" title="接入"> <el-dialog v-model="dialogFormVisible" title="接入">
<el-row :gutter="20"> <el-input v-model="wxurl" readonly>
<el-col :span="6">服务器地址(URL)</el-col> <template #append>
<el-col id="target" :span="12">{{ wxurl }}</el-col> <el-button @click="copyText(wxurl)">复制链接</el-button>
<el-col :span="6"> </template>
<el-button id="btn" type="primary" style="float: right;" @click="copyLink">点击复制</el-button> </el-input>
</el-col>
</el-row>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -86,7 +84,9 @@ import {BasicTableProps, useTable} from "/@/hooks/table";
import {clearQuota, delObjs, fetchList, generateQr} from "/@/api/mp/wx-account"; import {clearQuota, delObjs, fetchList, generateQr} from "/@/api/mp/wx-account";
import {useMessage, useMessageBox} from "/@/hooks/message"; import {useMessage, useMessageBox} from "/@/hooks/message";
import {useI18n} from "vue-i18n"; import {useI18n} from "vue-i18n";
import commonFunction from '/@/utils/commonFunction';
const { copyText } = commonFunction();
// //
const FormDialog = defineAsyncComponent(() => import('./form.vue')); const FormDialog = defineAsyncComponent(() => import('./form.vue'));
const {t} = useI18n() const {t} = useI18n()