第二次提交代码
parent
d77589f30f
commit
650ce0090d
@ -0,0 +1,2 @@
|
||||
# 生产环境 API 地址(打包后使用)
|
||||
VITE_API_BASE_URL=http://192.168.0.117:8092/tax
|
||||
@ -0,0 +1,56 @@
|
||||
<script setup lang="ts">
|
||||
import { NGrid, NGridItem, NButton, NIcon } from 'naive-ui'
|
||||
import { HomeOutline } from '@vicons/ionicons5'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="header-bg">
|
||||
<n-grid x-gap="15" :cols="6">
|
||||
<n-grid-item class="col-center" >
|
||||
<NButton color="#fff" ghost size="tiny" :strong="true">
|
||||
<template #icon>
|
||||
<n-icon>
|
||||
<HomeOutline />
|
||||
</n-icon>
|
||||
</template>返回菜单
|
||||
</NButton>
|
||||
</n-grid-item>
|
||||
<n-grid-item></n-grid-item>
|
||||
<n-grid-item></n-grid-item>
|
||||
<n-grid-item></n-grid-item>
|
||||
<n-grid-item class="col-center">
|
||||
<NButton color="#fff" ghost size="tiny" :strong="true">
|
||||
<template #icon>
|
||||
<n-icon>
|
||||
<HomeOutline />
|
||||
</n-icon>
|
||||
</template>人工客服
|
||||
</NButton>
|
||||
</n-grid-item>
|
||||
<n-grid-item class="col-center">
|
||||
<NButton color="#fff" ghost size="tiny" :strong="true">
|
||||
<template #icon>
|
||||
<n-icon>
|
||||
<HomeOutline />
|
||||
</n-icon>
|
||||
</template>退出登录
|
||||
</NButton>
|
||||
</n-grid-item>
|
||||
</n-grid>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
.col-center{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.header-bg{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 8vh;
|
||||
width: 100vw;
|
||||
background-color: #FFD39B;
|
||||
}
|
||||
</style>
|
||||
@ -1,6 +1,11 @@
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
import Login from '@renderer/views/Login.vue'
|
||||
import Home from '@renderer/views/Home..vue'
|
||||
|
||||
export default createRouter({
|
||||
history: createWebHashHistory(), // hash模式
|
||||
routes: [{ path: '/', component: Login }]
|
||||
routes: [
|
||||
{ path: '/', component: Login },
|
||||
{ path:'/home', component: Home}
|
||||
]
|
||||
})
|
||||
|
||||
@ -0,0 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import HomeHeader from '@renderer/components/HomeHeader.vue';
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="home-bg">
|
||||
<HomeHeader />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="css">
|
||||
.home-bg{
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
background-color: #66ccff;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue