fix: 修改index数据来源
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 47s
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 47s
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref } from 'vue';
|
||||
import { reactive, ref, onMounted } from 'vue';
|
||||
import { authApi } from '@/api/index.js';
|
||||
|
||||
const form = reactive({
|
||||
@@ -47,6 +47,17 @@
|
||||
newCode: ''
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
// 获取 URL 参数中的原手机号
|
||||
const pages = getCurrentPages();
|
||||
const currentPage = pages[pages.length - 1];
|
||||
const options = currentPage.options;
|
||||
|
||||
if (options.oldPhone) {
|
||||
form.oldPhone = options.oldPhone;
|
||||
}
|
||||
});
|
||||
|
||||
let oldCooldown = ref(0);
|
||||
let newCooldown = ref(0);
|
||||
let oldCodeText = ref('获取验证码');
|
||||
|
||||
Reference in New Issue
Block a user