|
@@ -838,6 +838,7 @@
|
|
<label></label>
|
|
<label></label>
|
|
<div class="w-full">
|
|
<div class="w-full">
|
|
<t-button @click="onPublish">发布</t-button>
|
|
<t-button @click="onPublish">发布</t-button>
|
|
|
|
+ <t-button v-if="publishDialog.data.id&&!publishDialog.data.isExpired" @click="onCancelPublish" class="ml-16">取消发布</t-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -2384,6 +2385,13 @@ const onPublish = async () => {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const onCancelPublish = async () => {
|
|
|
|
+ const ret: any = await axios.post(`/api/domain/remove`, {
|
|
|
|
+ id: route.query.id,
|
|
|
|
+ });
|
|
|
|
+ onShowPublish();
|
|
|
|
+}
|
|
|
|
+
|
|
const makePublishQrcode = async () => {
|
|
const makePublishQrcode = async () => {
|
|
const qr: any = await QRCode.toDataURL(`http://${publishDialog.data.domain}`);
|
|
const qr: any = await QRCode.toDataURL(`http://${publishDialog.data.domain}`);
|
|
publishDialog.url = qr;
|
|
publishDialog.url = qr;
|