Bladeren bron

router cs

guanchunjie 3 jaren geleden
bovenliggende
commit
9e7d60e026
1 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 5 2
      src/router/index.js

+ 5 - 2
src/router/index.js

@@ -194,13 +194,16 @@ export function resetRouter() {
 }
 export function handleSysType(sys_type, path_type) {
   let path = '';
+  let csArr = window.location.href.split('?');
+  let cs = csArr[1];
   switch (sys_type) {
     case 'GCLS':
       console.log('全球汉语教学平台')
       if (path_type == 'home') {
         path = '/';
       } else if (path_type == 'goods') {
-        path = '/curGoodsDetail'
+
+        path = '/curGoodsDetail?' + cs
       }
       break;
     case 'AILP':
@@ -208,7 +211,7 @@ export function handleSysType(sys_type, path_type) {
       if (path_type == 'home') {
         path = '/GCLS-Book-AILP/#/EnterSys';
       } else if (path_type == 'goods') {
-        path = '/GCLS-Book-AILP/#/curGoodsDetail';
+        path = '/GCLS-Book-AILP/#/GoodsDetail?' + cs;
       }
       break;
     default: