mirror of
https://github.com/dataease/dataease.git
synced 2025-02-23 02:52:56 +08:00
fix(嵌入式): 嵌入式路由调整
This commit is contained in:
parent
4e287fa5ba
commit
56717714f1
@ -11,14 +11,10 @@ const router = createRouter({
|
|||||||
const rawInstall = router.install
|
const rawInstall = router.install
|
||||||
router.install = app => {
|
router.install = app => {
|
||||||
const hash = window.location.hash
|
const hash = window.location.hash
|
||||||
console.log('hash', hash)
|
|
||||||
rawInstall(app)
|
rawInstall(app)
|
||||||
console.log('hash1', window.location.hash)
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log('hash2', window.location.hash)
|
window.location.hash = hash
|
||||||
}, 300)
|
}, 300)
|
||||||
window.location.hash = hash
|
|
||||||
console.log('hash3', window.location.hash)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const setupRouter = (app: App<Element>) => {
|
export const setupRouter = (app: App<Element>) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user