我的地址中的递归方法会造成内存溢出,先注释掉了,优化permission.js的逻辑
This commit is contained in:
parent
5f48361f4e
commit
3bceee2290
@ -53,6 +53,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
} else {
|
||||
next(`/login?redirect=${to.path}`);
|
||||
}
|
||||
window.location.reload(); // 强制刷新以重置路由,避免卡在白屏
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -52,6 +52,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
} else {
|
||||
next(`/login?redirect=${to.path}`);
|
||||
}
|
||||
window.location.reload(); // 强制刷新以重置路由,避免卡在白屏
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-dialog v-model="dialogVisible" title="地址" width="40%" :before-close="handleClose">
|
||||
<el-form :label-position="labelPosition" label-width="130px" :model="formLabelAlign" style="max-width: 1000px">
|
||||
<el-form label-width="130px" :model="formLabelAlign" style="max-width: 1000px">
|
||||
<el-form-item label="联系人" prop="receiverName" :rules="[{ required: true, message: '请输入联系人' }]">
|
||||
<el-input v-model="formLabelAlign.receiverName" />
|
||||
</el-form-item>
|
||||
@ -174,7 +174,6 @@ let page = reactive({
|
||||
});
|
||||
let ids = ref([]);
|
||||
let dialogVisible = ref(false);
|
||||
|
||||
let formLabelAlign = reactive({
|
||||
receiverName: '',
|
||||
receiverPhone: '',
|
||||
@ -248,7 +247,7 @@ const showDialogVisible = (data) => {
|
||||
dialogVisible.value = true;
|
||||
formLabelAlign = data;
|
||||
formLabelAlign.isDefault == '1' ? (formLabelAlign.isDefault = true) : (formLabelAlign.isDefault = false);
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
};
|
||||
|
||||
const submit = (value) => {
|
||||
@ -286,9 +285,9 @@ const getUserAddressList = () => {
|
||||
res.data.records.forEach((item) => {
|
||||
item.postArea = item.postArea.split(',');
|
||||
});
|
||||
console.log(res.data.records);
|
||||
// console.log(res.data.records);
|
||||
data.value = res.data.records;
|
||||
addIsCheckProperty(data);
|
||||
// addIsCheckProperty(data);
|
||||
});
|
||||
};
|
||||
|
||||
@ -316,7 +315,7 @@ function addIsCheckProperty(data) {
|
||||
}
|
||||
|
||||
const numberChange = (value, index, indexg) => {
|
||||
console.log(value, index, indexg);
|
||||
// console.log(value, index, indexg);
|
||||
if (number.value < value) {
|
||||
// addToCart();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user