add warnings

This commit is contained in:
Qiuxia Fan 2022-03-21 19:13:37 +08:00
parent 1cd9165a61
commit 31f3b45665

View File

@ -92,6 +92,7 @@ limitations under the License. -->
v-model="dashboardStore.editMode"
active-text="Edit"
inactive-text="View"
@change="changeMode"
/>
</div>
</div>
@ -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 &&