[Improvement] Progress: support gradient color (#1098)

This commit is contained in:
neverland
2018-05-18 14:28:33 +08:00
committed by GitHub
parent e9508262b7
commit eee44f0d7c
8 changed files with 87 additions and 56 deletions
+2
View File
@@ -33,6 +33,7 @@ Locale.add({
red: '红色',
orange: '橙色',
yellow: '黄色',
purple: '紫色',
tab: '标签',
tag: '标签',
desc: '描述信息',
@@ -60,6 +61,7 @@ Locale.add({
red: 'Red',
orange: 'Orange',
yellow: 'Yellow',
purple: 'Purple',
tab: 'Tab',
tag: 'Tag',
desc: 'Description',
+1 -1
View File
@@ -16,7 +16,7 @@ const router = new VueRouter({
router.beforeEach((route, redirect, next) => {
if (isMobile) {
location.replace('/zanui/vant/examples' + location.hash);
location.replace(location.pathname === '/' ? 'examples.html' : '/zanui/vant/examples' + location.hash);
}
document.title = route.meta.title || document.title;
next();