浏览代码

Update Navbar.vue

lex-xin 4 年之前
父节点
当前提交
68e1a7112c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/layout/components/Navbar.vue

+ 1 - 1
src/layout/components/Navbar.vue

@@ -179,7 +179,7 @@ export default {
         this.isDisable = true;
         // 发请求成功后开启定时器
         // 发送验证码 
-        axios.post('/api-web/code/sendSms', qs.stringify({ mobile: this.resetForm.phone })).then(res => {
+        axios.post('/api-web/code/sendSms', qs.stringify({ mobile: this.$store.getters.phone })).then(res => {
           if (res.data.code == 200) {
             let timer = setInterval(res => {
               if (this.timerCount <= 0) {