import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'
//路由只支持hash
const router = createRouter({
mode: process.env.IS_ELECTRON ? 'hash': 'history',
history: process.env.IS_ELECTRON? createWebHashHistory(process.env.BASE_URL):createWebHistory(process.env.BASE_URL) ,
routes
})