|
@@ -1,4 +1,4 @@
|
|
|
-import { createRouter, createWebHistory } from 'vue-router';
|
|
|
|
|
|
|
+import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
|
|
|
import store from '../store';
|
|
import store from '../store';
|
|
|
import { Page } from './Page';
|
|
import { Page } from './Page';
|
|
|
import { Dialog } from 'vant';
|
|
import { Dialog } from 'vant';
|
|
@@ -42,7 +42,7 @@ function jsapiSign() {
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
- .catch(e => { });
|
|
|
|
|
|
|
+ .catch(e => {});
|
|
|
}
|
|
}
|
|
|
}, 200);
|
|
}, 200);
|
|
|
}
|
|
}
|
|
@@ -410,7 +410,7 @@ const routes = [
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
const router = createRouter({
|
|
|
- history: createWebHistory(process.env.BASE_URL),
|
|
|
|
|
|
|
+ history: process.env.NODE_ENV === 'app' ? createWebHashHistory() : createWebHistory(process.env.BASE_URL),
|
|
|
routes,
|
|
routes,
|
|
|
scrollBehavior(to, from, savedPosition) {
|
|
scrollBehavior(to, from, savedPosition) {
|
|
|
return { x: 0, y: 0 };
|
|
return { x: 0, y: 0 };
|