trying to fix render bug for non-home views
This commit is contained in:
parent
a3365c544d
commit
8c6c557552
2 changed files with 8 additions and 6 deletions
|
|
@ -4,16 +4,18 @@
|
|||
|
||||
<script lang="ts">
|
||||
|
||||
export default {
|
||||
import { defineComponent } from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
|
||||
name: "Login",
|
||||
|
||||
};
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#messenger {
|
||||
#login {
|
||||
width: 350px;
|
||||
height: 500px;
|
||||
background-color: #e6e6e6;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import Splash from "./views/splash.vue";
|
|||
const routes: Array<RouteRecordRaw> = [
|
||||
|
||||
{
|
||||
path: "/",
|
||||
path: "/asdas",
|
||||
name: "Splash",
|
||||
component: Splash
|
||||
},
|
||||
|
|
@ -25,7 +25,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||
},
|
||||
|
||||
{
|
||||
path: "/login",
|
||||
path: "/",
|
||||
name: "Login",
|
||||
component: Login
|
||||
},
|
||||
|
|
@ -33,7 +33,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
history: process.env.IS_ELECTRON ? createWebHashHistory() : createWebHistory(process.env.BASE_URL),
|
||||
routes
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue