|
@@ -39,13 +39,13 @@ const urlIsTeacher =
|
|
|
: false;
|
|
|
// const paymentType = (window as any).paymentType; // 浏览器设置
|
|
|
// 判断是哪个环境
|
|
|
-// if (urlIsTeacher) {
|
|
|
-state.platformType = 'TEACHER';
|
|
|
-state.platformApi = '/api-teacher';
|
|
|
-// } else {
|
|
|
-// state.platformType = 'STUDENT';
|
|
|
-// state.platformApi = '/api-student';
|
|
|
-// }
|
|
|
+if (urlIsTeacher) {
|
|
|
+ state.platformType = 'TEACHER';
|
|
|
+ state.platformApi = '/api-teacher';
|
|
|
+} else {
|
|
|
+ state.platformType = 'STUDENT';
|
|
|
+ state.platformApi = '/api-student';
|
|
|
+}
|
|
|
|
|
|
const app = createApp(App);
|
|
|
|