add paint router
This commit is contained in:
1 parent
fa06709410
commit
f831411078
5 files changed
+24
-4
No files matched your search
@@ -15,7 +15,7 @@
|
|||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { ElTooltip, ElButton } from 'element-plus';
|
import { ElTooltip, ElButton } from 'element-plus';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||||
import { ROUTE_CHAT_INDEX } from '@/router/constants';
|
import { ROUTE_CHAT_INDEX, ROUTE_PAINT_INDEX } from '@/router/constants';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'Navigator',
|
name: 'Navigator',
|
||||||
@@ -34,7 +34,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
route: {
|
route: {
|
||||||
name: 'midjourney-index'
|
name: ROUTE_PAINT_INDEX
|
||||||
},
|
},
|
||||||
icon: 'fa-solid fa-palette'
|
icon: 'fa-solid fa-palette'
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,6 @@ export default defineComponent({
|
|||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
// border-radius: 5px;
|
|
||||||
.button {
|
.button {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<template>
|
||||||
|
<div>hi</div>
|
||||||
|
</template>
|
||||||
@@ -6,5 +6,8 @@ export const ROUTE_AUTH_CALLBACK = 'auth-callback';
|
|||||||
export const ROUTE_CHAT_INDEX = 'chat-index';
|
export const ROUTE_CHAT_INDEX = 'chat-index';
|
||||||
export const ROUTE_CHAT_CONVERSATION = 'chat-conversation';
|
export const ROUTE_CHAT_CONVERSATION = 'chat-conversation';
|
||||||
|
|
||||||
|
export const ROUTE_PAINT_INDEX = 'paint-index';
|
||||||
|
export const ROUTE_PAINT_HISTORY = 'paint-history';
|
||||||
|
|
||||||
export const ROUTE_CONVERSATION_NEW = 'conversation-new';
|
export const ROUTE_CONVERSATION_NEW = 'conversation-new';
|
||||||
export const ROUTE_CONVERSATION_DETAIL = 'conversation-detail';
|
export const ROUTE_CONVERSATION_DETAIL = 'conversation-detail';
|
||||||
+3
-1
@@ -3,6 +3,7 @@ import auth from './auth';
|
|||||||
import conversation from './conversation';
|
import conversation from './conversation';
|
||||||
import store from '@/store';
|
import store from '@/store';
|
||||||
import chat from './chat';
|
import chat from './chat';
|
||||||
|
import paint from './paint';
|
||||||
import { ROUTE_AUTH_LOGIN, ROUTE_CONVERSATION_NEW, ROUTE_INDEX } from './constants';
|
import { ROUTE_AUTH_LOGIN, ROUTE_CONVERSATION_NEW, ROUTE_INDEX } from './constants';
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
@@ -13,7 +14,8 @@ const routes = [
|
|||||||
name: ROUTE_CONVERSATION_NEW
|
name: ROUTE_CONVERSATION_NEW
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chat
|
chat,
|
||||||
|
paint
|
||||||
];
|
];
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { ROUTE_PAINT_INDEX } from './constants';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
path: '/paint',
|
||||||
|
component: () => import('@/layouts/Main.vue'),
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
name: ROUTE_PAINT_INDEX,
|
||||||
|
component: () => import('@/pages/paint/Index.vue')
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
Reference in new issue
Block a user