Browse Source

Update index.ts

lex 2 years ago
parent
commit
b6fbc468d9
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/router/index.ts

+ 4 - 4
src/router/index.ts

@@ -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'),