前端:优惠劵列表
前端:增加路由的认证拦截
This commit is contained in:
@@ -7,6 +7,8 @@ import VueLazyload from 'vue-lazyload'
|
||||
import components from './config/components.js';
|
||||
import { Dialog } from 'vant';
|
||||
|
||||
import { formatDate } from './utils/date.js';
|
||||
|
||||
Vue.use(components);
|
||||
|
||||
Vue.use(VueLazyload);
|
||||
@@ -16,4 +18,10 @@ new Vue({
|
||||
router,
|
||||
el: '#app',
|
||||
render: h => h(App)
|
||||
});
|
||||
});
|
||||
|
||||
Vue.filter('formatDate', function(date, pattern) {
|
||||
if (date) {
|
||||
return formatDate(date, pattern);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user