mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
文档细节优化,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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user