This commit is contained in:
Xuan Loi
2026-01-16 10:28:24 +07:00
parent 0a7d66dfbd
commit fe27651e34
2 changed files with 3 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ export default {
async changePassword() { async changePassword() {
if(!this.checkPassword()) return if(!this.checkPassword()) return
let user = await this.$getdata('user', undefined, {filter: {id: this.row.id}}, true) let user = await this.$getdata('user', undefined, {filter: {id: this.row.id}}, true)
const response = await fetch(`https://api.y99.vn/password/${this.password}/`) const response = await fetch(`${this.$getpath()}password/${this.password}/`)
let hash = await response.json(); let hash = await response.json();
user.password = hash user.password = hash
let rs1 = await this.$updateapi('user', user) let rs1 = await this.$updateapi('user', user)

View File

@@ -4,7 +4,7 @@ import axios from 'axios'
export default defineNuxtPlugin(() => { export default defineNuxtPlugin(() => {
const module = 'system' const module = 'system'
const mode = 'prod' const mode = 'dev'
const paths = [ const paths = [
{ name: "dev", url: "https://dev.api.utopia.com.vn/" }, { name: "dev", url: "https://dev.api.utopia.com.vn/" },
{ name: "local", url: "http://localhost:8000/" }, { name: "local", url: "http://localhost:8000/" },
@@ -141,7 +141,7 @@ export default defineNuxtPlugin(() => {
const requestLogin = function() { const requestLogin = function() {
store.commit('login', undefined) store.commit('login', undefined)
window.location.href = `https://${mode==='dev'? '' : ''}login.utopia.com.vn/signin?module=${module}&link=${window.location.origin}` window.location.href = `https://${mode==='dev'? 'dev.' : ''}login.utopia.com.vn/signin?module=${module}&link=${window.location.origin}`
} }