<template>
    <div class="page">
        home
        <FButton class="m-2" @click="go">
            Button
        </FButton>
    </div>
</template>

<script setup>
import { defineRouteMeta, useModel, useRouter } from '@fesjs/fes';
import { FButton } from '@fesjs/fes-design';

defineRouteMeta({
    name: 'index',
    title: '$test.test',
});

const initialState = useModel('@@initialState');

console.log(initialState);

const router = useRouter();
function go() {
    router.push('/editor');
}
</script>

<style lang="less">
.page {
    height: 1000px;
}
</style>
