|
|
|
@ -11,7 +11,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import option from "@/const/user/info"; |
|
|
|
import option from "@/const/user/info"; |
|
|
|
import {getUserInfo, update, updatePassword} from "@/api/system/user"; |
|
|
|
import {getUserInfo, updateInfo, updatePassword} from "@/api/system/user"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
@ -28,7 +28,7 @@ |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
handleSubmit() { |
|
|
|
handleSubmit() { |
|
|
|
if (this.type === "info") { |
|
|
|
if (this.type === "info") { |
|
|
|
update(this.form).then(res => { |
|
|
|
updateInfo(this.form).then(res => { |
|
|
|
if (res.data.success) { |
|
|
|
if (res.data.success) { |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
|
type: "success", |
|
|
|
type: "success", |
|
|
|
|