diff --git a/src/views/dashboard/panel/Tool.vue b/src/views/dashboard/panel/Tool.vue index c82d5b38..f4b75556 100644 --- a/src/views/dashboard/panel/Tool.vue +++ b/src/views/dashboard/panel/Tool.vue @@ -92,6 +92,7 @@ limitations under the License. --> v-model="dashboardStore.editMode" active-text="Edit" inactive-text="View" + @change="changeMode" /> @@ -302,6 +303,14 @@ function changePods(pod: any) { } } +function changeMode() { + if (dashboardStore.editMode) { + ElMessage.warning("You enter edit mode"); + return; + } + ElMessage.warning("You enter view mode"); +} + function clickIcons(t: { id: string; content: string; name: string }) { if ( dashboardStore.selectedGrid &&