文档细节优化,search、咯阿丁和dialog组件样式修复 (#5)

* fix: loading small style, search style and dialog style

* fix: scroll to top

* fix mobile scroll

* fix scroll to top
This commit is contained in:
张敏
2017-04-23 22:38:50 +08:00
committed by GitHub
parent 1725eb6303
commit ce27957133
23 changed files with 95 additions and 60 deletions

View File

@@ -6,7 +6,6 @@ import routes from './router.config';
import ZanUI from 'src/index.js';
import packageJson from '../../package.json';
const isProduction = process.env.NODE_ENV === 'production';
const global = {
version: packageJson.version
};
@@ -35,7 +34,7 @@ routesConfig.push({
const router = new VueRouter({
mode: 'history',
base: isProduction ? '/zanui/vue/' : __dirname,
base: '/zanui/vue/',
routes: routesConfig
});
@@ -44,7 +43,7 @@ router.beforeEach((route, redirect, next) => {
window.scrollTo(0, 0);
}
const pathname = isProduction ? '/vue/examples' : '/examples.html';
const pathname = '/zanui/vue/examples';
if (isMobile()) {
window.location.replace(pathname);
return;