trying to fix render bug for non-home views

This commit is contained in:
Andrew Gundersen 2021-02-04 11:35:25 -06:00
commit 8c6c557552
2 changed files with 8 additions and 6 deletions

View file

@ -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;

View file

@ -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
});