|
@@ -9,22 +9,22 @@ import baseEvent from '@/base-event'
|
|
|
|
|
|
const paymentType = (window as any).paymentType
|
|
|
let routes: any = []
|
|
|
-let baseUrl = null as any
|
|
|
+// let baseUrl = null as any
|
|
|
if (paymentType === 'STUDENT') {
|
|
|
routes = routesStudent
|
|
|
} else if (paymentType === 'TEACHER') {
|
|
|
routes = routesTeacher
|
|
|
- baseUrl = '/teacher.html'
|
|
|
+ // baseUrl = '/teacher.html'
|
|
|
} else if (paymentType === 'SCHOOL') {
|
|
|
routes = routesSchool
|
|
|
- baseUrl = '/school.html'
|
|
|
+ // baseUrl = '/school.html'
|
|
|
}
|
|
|
|
|
|
// if (location.origin.indexOf('location') <= -1 || location.origin.indexOf('192.168.3') <= -1) {
|
|
|
// baseUrl = ''
|
|
|
// }
|
|
|
|
|
|
-console.log(routes, baseUrl, paymentType)
|
|
|
+console.log(paymentType)
|
|
|
|
|
|
const router: Router = createRouter({
|
|
|
// history: createWebHistory('/school.html'),
|