fix: $dayJs改为全局引用,去除不必要组件引入

This commit is contained in:
刘洪洪
2022-10-27 09:48:31 +08:00
parent c2c3898d5b
commit 2da2172f03
3 changed files with 12 additions and 11 deletions

View File

@@ -77,7 +77,6 @@
<script>
import { ref, computed } from 'vue'
import MyDatePicker from '../MyDatePicker'
import { storageKey } from '@/utils/constants'
import { getMillisecond, timestampToList } from '@/utils/date-util'
import { useStore } from 'vuex'
@@ -98,9 +97,6 @@ export default {
}
},
emits: ['change'],
components: {
MyDatePicker
},
setup (props, ctx) {
// data
const store = useStore()
@@ -253,7 +249,6 @@ export default {
return {
myStartTime,
myEndTime,
getMillisecond,
dropdownFlag,
utcStr,
address,
@@ -265,6 +260,7 @@ export default {
showDetail,
rangeHistory,
rangeHistoryArr,
getMillisecond,
myDatePickerShow,
showDropdown,
changeDropdown,