This commit is contained in:
Viet An
2026-06-04 13:57:27 +07:00
parent 2981d9790a
commit 2a1f85c2af
44 changed files with 99 additions and 102 deletions

View File

@@ -319,7 +319,7 @@ export default {
},
async createAccount() {
if (this.checkError()) return;
let rs = await this.$insertapi("gethash", { text: this.password });
let rs = await this.$insertapi("gethash", { data: { text: this.password } });
this.hash = rs.rows[0];
let data = await this.$getdata("user", { first: true, filter: { username: this.username } });
if (data) {
@@ -342,7 +342,7 @@ export default {
if (this.user === "error") return;
// add rights
//let arr = this.$filter(this.common, {category: 'topmenu'}).map(v=>{return {user: this.user.id, function: v.id}})
//let result = await this.$insertapi('userrights', arr)
//let result = await this.$insertapi('userrights', { data: arr })
//this.$dialog('Account created successfully.', 'Success', 'Success', 10)
this.$emit("close");
},