<template>
  <NavBar title="设置密码" />
  <div class="px-5">
    <pwd-setting
      :phone="$route.query.phone"
      :sendSmsFunc="sendSmsFunc"
      :setPwdFunc="setPwdFunc"
    />
  </div>
</template>

<script lang="ts">
import PwdSetting from "./PwdSetting.vue";
import { defineComponent } from "vue";
import { getUserMsg } from "@/utils/userMsg";
import NavBar from "@/components/NavBar/index.vue";
export default defineComponent({
  components: { PwdSetting, NavBar },
  inject: ["sendSmsFunc", "setPwdFunc"],
  created() {
    console.log(this.$route.query.phone, "router");
    // this.Phone()
  },
  methods: {
    // Phone(){
    //   const phone =getUserMsg()?.userInfo.phone+''
    //   console.log(phone,'phone');
    //   return phone
    // }
  },
});
</script>
