|
@@ -137,7 +137,7 @@
|
|
|
|
|
|
<script lang="ts" setup name="detailPage">
|
|
|
import { useRouter } from 'vue-router';
|
|
|
-import { ref, onMounted, unref } from 'vue';
|
|
|
+import { ref, onMounted, unref, onActivated } from 'vue';
|
|
|
import { repairProcess, repairDetails } from '/@/api';
|
|
|
import dayjs from 'dayjs'
|
|
|
const { currentRoute } = useRouter();
|
|
@@ -165,6 +165,11 @@ onMounted(() => {
|
|
|
console.log('onMounted',id)
|
|
|
getDetaile();
|
|
|
});
|
|
|
+onActivated(()=>{
|
|
|
+ console.log('onActivated')
|
|
|
+ getDetaile();
|
|
|
+
|
|
|
+})
|
|
|
function priceCount(list){
|
|
|
let price = 0
|
|
|
list.map(ele => {
|