瀏覽代碼

Update index.ts

lex 2 年之前
父節點
當前提交
b6fbc468d9
共有 1 個文件被更改,包括 4 次插入4 次删除
  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'),