|
@@ -781,6 +781,7 @@ import ContextMenu from './ContextMenu.vue';
|
|
|
import Network from './Network.vue';
|
|
|
import Dataset from './Dataset.vue';
|
|
|
import ChargeCloudPublish from './ChargeCloudPublish.vue';
|
|
|
+import { message } from '@meta2d/core/src/diagrams';
|
|
|
|
|
|
const router = useRouter();
|
|
|
const route = useRoute();
|
|
@@ -1733,6 +1734,9 @@ const onShowPublish = async () => {
|
|
|
publishDialog.tips = '';
|
|
|
publishDialog.id = route.query.id + '';
|
|
|
publishDialog.show = true;
|
|
|
+ publishDialog.data = {
|
|
|
+ detail:''
|
|
|
+ };
|
|
|
|
|
|
const ret: any = await axios.post(`/api/domain/get`, {
|
|
|
id: publishDialog.id,
|
|
@@ -1799,6 +1803,10 @@ const onPublish = async () => {
|
|
|
if (!publishDialog.data.domain) {
|
|
|
publishDialog.data.domain = publishDialog.data.subDomain + '.v.le5le.com';
|
|
|
}
|
|
|
+ if(!route.query.id) {
|
|
|
+ MessagePlugin.warning('请选择将要发布的方案');
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
const ret: any = await axios.post(`/api/domain/set`, {
|
|
|
id: route.query.id,
|