Moved file and add new listings page

qi
QiTao Weng 2 years ago
parent ac4a5e8055
commit cea59cba29

@ -44,7 +44,7 @@ const login = async () => {
return user.message
}
loggedIn()
router.push({ path: '/Editor'})
router.push({ path: '/Listings'})
}
const register = async () => {
@ -61,12 +61,12 @@ const register = async () => {
return user.message
}
loggedIn()
router.push({ path: '/Editor'})
router.push({ path: '/Listings'})
}
onMounted(() => {
if ( checkLoggedIn() ) {
router.push({ path: '/Editor'})
router.push({ path: '/Listings'})
}
})

@ -3,7 +3,7 @@ import * as math from 'mathjs'
import {onMounted, ref} from 'vue'
import {MathStatement} from '../support/parse'
import {v4 as uuidv4} from 'uuid'
import Katex from '../components/Katex.vue'
import Katex from './Katex.vue'
import {ChartBox, StatementID} from '../support/types'
import {MathPage} from '../support/page'

@ -13,7 +13,7 @@ import ImageBox from '../components/ImageBox.vue'
import FunctionEditor from '../components/FunctionEditor.vue'
import { RichTextBox, ImageContainer } from '../support/types'
import RangeChart from '../components/RangeChart.vue'
import RangeChartEditor from './RangeChartEditor.vue'
import RangeChartEditor from '../components/RangeChartEditor.vue'
import { stepX, stepY } from '../support/const'
import { checkLoggedIn, loggedOut } from '../support/auth'
import router from '../router'

@ -17,6 +17,11 @@ const routes = [
name: 'Editor',
component: () => import(/* webpackChunkName: "Editor" */ './pages/Editor.vue'),
},
{
path: '/listings',
name: 'Listings',
component: () => import(/* webpackChunkName: "Listings" */ './pages/Listings.vue'),
},
]

Loading…
Cancel
Save