在vue的項(xiàng)目中使用的moment.js。但是存在時(shí)區(qū)問(wèn)題,后端已經(jīng)處理了時(shí)間,使用moment的時(shí)候又加了8小時(shí),想問(wèn)一下怎么修改。如下圖這是template的代碼<el-table-column prop="type" label="計(jì)劃完成日期" align="center">
<template slot-scope="scope">
<span>{{scope.row.EndDate | moment("YYYY-MM-DD")}}</span>
</template>
</el-table-column>在main.js中的引入Vue.use(require('vue-moment'));
添加回答
舉報(bào)
0/150
提交
取消