【fix】优化代码
This commit is contained in:
@ -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, '');
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user