Merge branch 'main' into vue-3

This commit is contained in:
Forms Dev
2023-12-07 16:04:55 +05:30
42 changed files with 1371 additions and 188 deletions

View File

@@ -57,6 +57,10 @@ export const useWorkspacesStore = defineStore('workspaces', {
},
remove (itemId) {
this.content = this.content.filter((val) => val.id !== itemId)
if (this.currentId === itemId) {
this.currentId = this.content.length > 0 ? this.content[0].id : null
localStorage.setItem(localStorageCurrentWorkspaceKey, this.currentId)
}
},
startLoading () {
this.loading = true