648540858
2023-02-14 81da03d981d0f08a2e8b46d7a2a9874eef02f671
web_src/src/components/dialog/changePushKey.vue
@@ -1,7 +1,7 @@
<template>
  <div id="changepushKey" v-loading="isLoging">
    <el-dialog
      title="修改密码"
      title="修改pushKey"
      width="42%"
      top="2rem"
      :close-on-click-modal="false"
@@ -65,14 +65,13 @@
    onSubmit: function () {
      this.$axios({
        method: 'post',
        url:"/api/user/changePushKey",
        url:"./api/user/changePushKey",
        params: {
          pushKey: this.newPushKey,
          userId: this.form.id,
        }
      }).then((res)=> {
        console.log(res.data)
        if (res.data.msg === "success"){
        if (res.data.code === 0) {
          this.$message({
            showClose: true,
            message: '修改成功',
@@ -83,7 +82,7 @@
        }else {
          this.$message({
            showClose: true,
            message: '修改密码失败,是否已登录(接口鉴权关闭无法修改密码)',
            message: '修改pushKey失败,是否已登录(接口鉴权关闭无法修改pushKey)',
            type: 'error'
          });
        }