Kaynağa Gözat

feat: 更换请求地址

sunxiao 3 hafta önce
ebeveyn
işleme
41b535af89
2 değiştirilmiş dosya ile 6 ekleme ve 5 silme
  1. 5 5
      src/utils/request.ts
  2. 1 0
      src/views/login/LoginView.vue

+ 5 - 5
src/utils/request.ts

@@ -23,11 +23,11 @@ function isIPAddress(hostname:string) {
 
 const hostname = window.location.hostname;
 
-if (isIPAddress(hostname)) {
-  baseURL= `http://${hostname}:8080/`
-} else {
-  baseURL= `/apiServe`
-}
+// if (isIPAddress(hostname)) {
+//   baseURL= `http://${hostname}:8080/`
+// } else {
+//   baseURL= `/apiServe`
+// }
 enum errorCode {
   '请求错误'          = 400,
   '未授权,请重新登录' = 401,

+ 1 - 0
src/views/login/LoginView.vue

@@ -68,6 +68,7 @@ function AES_ECB_DECRYPT(textBase64) {
   return CryptoJS.enc.Utf8.stringify(decrypt);
 }
 
+// console.log( "AES_ECB_DECRYPTA", ES_ECB_DECRYPT("QtBKjsD3TVlsn7efq7+xYg==") );
 </script>
 
 <template>