【fix】优化代码

This commit is contained in:
黄少君
2024-02-22 18:37:23 +08:00
parent 17c043348a
commit f8fac0a5bc
246 changed files with 973 additions and 406 deletions

View File

@ -108,7 +108,7 @@
<script setup>
import { computed, nextTick, onMounted, ref, unref, watch } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { useMainStore } from '@/store/store'
import { useMainStore } from '@/store/modules/useMainStore'
import { getAddressAddAndEdit, getAddressDel, } from '@/api/address'
import { useRouter } from "@/hooks/useRouter";
import { storeToRefs } from "pinia";
@ -303,10 +303,10 @@ function handleChooseAddress() {
/**
* 手机号验证
*/
function phoneInput(event){
function phoneInput(event) {
const pattern = /[^\d]/g;
nextTick(() => {
addressData.value.phone = event.detail.value.replace(pattern,'');
addressData.value.phone = event.detail.value.replace(pattern, '');
})
}