|
@@ -423,7 +423,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="orderAccept">
|
|
<script setup lang="ts" name="orderAccept">
|
|
-import { computed, defineAsyncComponent, onActivated, onMounted, onUnmounted, reactive, ref, watch } from 'vue';
|
|
|
|
|
|
+import { computed, defineAsyncComponent, onMounted, onUnmounted, reactive, ref, watch } from 'vue';
|
|
import { ElLoading, FormInstance } from 'element-plus';
|
|
import { ElLoading, FormInstance } from 'element-plus';
|
|
import { ElMessage } from 'element-plus';
|
|
import { ElMessage } from 'element-plus';
|
|
import { storeToRefs } from 'pinia';
|
|
import { storeToRefs } from 'pinia';
|
|
@@ -1358,13 +1358,6 @@ onMounted(async () => {
|
|
onUnmounted(() => {
|
|
onUnmounted(() => {
|
|
window.removeEventListener('beforeunload', handleBeforeUnload);
|
|
window.removeEventListener('beforeunload', handleBeforeUnload);
|
|
});
|
|
});
|
|
-onActivated(() => {
|
|
|
|
- // 判断当前路由参数是否和已有数据匹配,不匹配就重新加载
|
|
|
|
- if (state.ruleForm.fromPhone !== route.query.fromTel) {
|
|
|
|
- resetForm();
|
|
|
|
- loadBaseData();
|
|
|
|
- }
|
|
|
|
-});
|
|
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.check-group {
|
|
.check-group {
|