Parcourir la source

improve: 取消加密

From-wh il y a 2 ans
Parent
commit
e7b144d15d

+ 0 - 1
template/admin/src/main.js

@@ -196,7 +196,6 @@ new Vue({
           }
           }
         });
         });
       }
       }
-      console.log(to.name);
       if (
       if (
         [
         [
           'product_productAdd',
           'product_productAdd',

+ 1 - 4
template/admin/src/pages/account/login/index.vue

@@ -75,7 +75,6 @@ import '@/assets/js/canvas-nest.min';
 import Verify from '@/components/verifition/Verify';
 import Verify from '@/components/verifition/Verify';
 import { PrevLoading } from '@/utils/loading.js';
 import { PrevLoading } from '@/utils/loading.js';
 import { formatFlatteningRoutes, findFirstNonNullChildren } from '@/libs/system';
 import { formatFlatteningRoutes, findFirstNonNullChildren } from '@/libs/system';
-import { encryptWithKey } from '@/utils/ase.js';
 
 
 export default {
 export default {
   components: {
   components: {
@@ -108,7 +107,6 @@ export default {
       key: '',
       key: '',
       copyright: '',
       copyright: '',
       version: '',
       version: '',
-      publicKey: '',
     };
     };
   },
   },
   created() {
   created() {
@@ -172,7 +170,6 @@ export default {
           this.swiperList = data.slide.length ? data.slide : [{ slide: this.defaultSwiperList }];
           this.swiperList = data.slide.length ? data.slide : [{ slide: this.defaultSwiperList }];
           this.key = data.key;
           this.key = data.key;
           this.copyright = data.copyright;
           this.copyright = data.copyright;
-          this.publicKey = data.publicKey;
           this.version = data.version;
           this.version = data.version;
           this.login_captcha = data.login_captcha;
           this.login_captcha = data.login_captcha;
         })
         })
@@ -196,7 +193,7 @@ export default {
       this.loading = true;
       this.loading = true;
       AccountLogin({
       AccountLogin({
         account: this.formInline.username,
         account: this.formInline.username,
-        pwd: encryptWithKey(this.formInline.password, this.publicKey),
+        pwd: this.formInline.password,
         key: this.key,
         key: this.key,
         captchaType: 'blockPuzzle',
         captchaType: 'blockPuzzle',
         captchaVerification: params ? params.captchaVerification : '',
         captchaVerification: params ? params.captchaVerification : '',