fix prod bug
This commit is contained in:
@@ -56,11 +56,11 @@ function createNoteWindow(noteId) {
|
||||
|
||||
if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
|
||||
noteWindow.loadURL(
|
||||
`${process.env['ELECTRON_RENDERER_URL']}/note/${noteId}`,
|
||||
`${process.env['ELECTRON_RENDERER_URL']}/#/note/${noteId}`,
|
||||
)
|
||||
} else {
|
||||
mainWindow.loadFile(rendererPath, {
|
||||
path: `/notes/${noteId}`,
|
||||
noteWindow.loadFile(rendererPath, {
|
||||
hash: `/note/${noteId}`,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
|
||||
import Directory from '@/views/Directory.vue'
|
||||
import Editor from '@/views/Editor.vue'
|
||||
@@ -15,6 +15,6 @@ const routes = [
|
||||
]
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
history: createWebHashHistory(),
|
||||
routes,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user