lsc 2 viikkoa sitten
vanhempi
commit
b3e2dd2e58
4 muutettua tiedostoa jossa 3 lisäystä ja 4 poistoa
  1. 1 1
      dist/index.html
  2. 0 0
      dist/js/app.b16fd6b5.js
  3. 0 0
      dist/js/app.b16fd6b5.js.map
  4. 2 3
      src/permission.js

+ 1 - 1
dist/index.html

@@ -36,7 +36,7 @@
         width: 100%;
         background: #e6eaf0;
         font-family: '黑体';
-      }</style><script defer="defer" src="/js/chunk-vendors.3da6042e.js"></script><script defer="defer" src="/js/app.f35e544a.js"></script><link href="/css/chunk-vendors.7cfe4581.css" rel="stylesheet"><link href="/css/app.ba460f0a.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but pblAdminTable doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html><script>function stopSafari() {
+      }</style><script defer="defer" src="/js/chunk-vendors.3da6042e.js"></script><script defer="defer" src="/js/app.b16fd6b5.js"></script><link href="/css/chunk-vendors.7cfe4581.css" rel="stylesheet"><link href="/css/app.ba460f0a.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but pblAdminTable doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/js/app.b16fd6b5.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/js/app.b16fd6b5.js.map


+ 2 - 3
src/permission.js

@@ -13,9 +13,8 @@ router.beforeEach(async (to, from, next) => {
 
   const hasToken = store.getters.token
   let loginType = window.topU ? window.topU.U.UF.Cookie.get("cocoroboLoginType") : window.top.U.UF.Cookie.get("cocoroboLoginType");
-  var userInfo = window.topU ? window.topU.US.userInfo : window.top.US.userInfo;
-  var panId = userInfo && userInfo.userid
-  if (hasToken && panId && loginType != 1) {
+  let cocorobo = window.topU ? window.topU.U.UF.Cookie.get("cocorobo") : window.top.U.UF.Cookie.get("cocorobo");
+  if (hasToken && cocorobo && loginType != 1) {
     if (to.path === '/login') {
       console.log('111111111111');
       const userinfo = store.getters.userinfo && Object.keys(store.getters.userinfo).length > 0

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä