Fix #1409, slug cannot be empty

This commit is contained in:
Louis Lam
2022-03-24 23:43:07 +08:00
parent 6c7a0ff7d3
commit 28d72fcd08
3 changed files with 28 additions and 5 deletions

View File

@@ -518,6 +518,7 @@ export default {
save() {
let startTime = new Date();
this.config.slug = this.config.slug.trim().toLowerCase();
this.$root.getSocket().emit("saveStatusPage", this.slug, this.config, this.imgDataUrl, this.$root.publicGroupList, (res) => {
if (res.ok) {