购物车历史订单增加,代码优化
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, getCurrentInstance, ref, reactive } from 'vue';
|
||||
import { onMounted, ref, reactive } from 'vue';
|
||||
import dayjs from 'dayjs';
|
||||
import go from '@/commons/utils/go.js'
|
||||
import datePickerview from './components/my-date-pickerview.vue'
|
||||
@@ -139,7 +139,7 @@
|
||||
PopUp: false,
|
||||
form: {}
|
||||
})
|
||||
const currentInstance = getCurrentInstance()
|
||||
const datePicker = ref()
|
||||
const props = defineProps({
|
||||
id: {
|
||||
type: Number
|
||||
@@ -256,7 +256,7 @@
|
||||
function changeTime(e) {
|
||||
selected.value = e
|
||||
if (e == 'custom') {
|
||||
currentInstance.ctx.$refs.datePicker.toggle()
|
||||
datePicker.value.toggle()
|
||||
} else {
|
||||
getlist()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user