mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 15:13:30 +00:00
feat(front): add dayjs integration for date formatting in dev page, showcasing language pack rendering
This commit is contained in:
@@ -9,6 +9,7 @@ import InputField from '@/components/Field/InputField.vue'
|
||||
import FormButton from '@/components/Field/FormButton.vue'
|
||||
import SelectField from '@/components/Field/SelectField.vue'
|
||||
import SwitchField from '@/components/Field/SwitchField.vue'
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
const { NODE_ENV } = process.env || {}
|
||||
const isDev = NODE_ENV === 'development'
|
||||
@@ -72,6 +73,7 @@ if (!isDev) {
|
||||
</FormButton>
|
||||
</div>
|
||||
</VeeForm>
|
||||
<div>测试dayjs语言包渲染:{{ dayjs().add(1, 'day').fromNow() }}</div>
|
||||
</div>
|
||||
</template>
|
||||
<style scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user