Commit 979e03ac authored by 柳 佳乐's avatar 柳 佳乐
Browse files

20221125

parent a0a55082
This diff is collapsed.
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
getStaff(){ getStaff(){
getOneself({userId:this.userId}).then((res)=>{ getOneself({userId:this.userId}).then((res)=>{
if(res.status == "success"){ if(res.success){
this.staffData = res.data this.staffData = res.data
}else{ }else{
this.$message.error(res.data) this.$message.error(res.data)
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
this.$refs.form.validate((valida)=>{ this.$refs.form.validate((valida)=>{
if(valida){ if(valida){
update(this.staffData).then((res)=>{ update(this.staffData).then((res)=>{
if(res.status == "success"){ if(res.success){
this.$message.success("修改成功") this.$message.success("修改成功")
this.$store.dispatch('tagsView/delView', this.$route) this.$store.dispatch('tagsView/delView', this.$route)
this.$router.push("/staffList") this.$router.push("/staffList")
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
userId:this.staffData.userId userId:this.staffData.userId
} }
staffpassword(param).then((res)=>{ staffpassword(param).then((res)=>{
if(res.status == "success"){ if(res.success){
this.$message.success("修改成功") this.$message.success("修改成功")
this.password='' this.password=''
}else{ }else{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment