dujingxian 4 سال پیش
والد
کامیت
e5cae707d0
3فایلهای تغییر یافته به همراه9 افزوده شده و 4 حذف شده
  1. 2 1
      src/api/index.js
  2. 4 2
      src/pages/login.vue
  3. 3 1
      vue.config.js

+ 2 - 1
src/api/index.js

@@ -104,7 +104,8 @@ let requestLoading = (url, method, params) => {
 
 // const Prefix = StanleyLocal;
 // const Prefix = 'http://192.168.1.195:8080/';
-const Prefix = 'http://192.168.1.195/mobile/index.php?';
+// const Prefix = 'http://192.168.1.195/mobile/index.php?';
+const Prefix = 'https://www.xyzshops.cn/mobile/index.php?';
 
 
 //测试请求

+ 4 - 2
src/pages/login.vue

@@ -1,5 +1,6 @@
 <template>
-  <el-container :style="'height:100%;background:url('+LoginBg+');background-size:cover;'">
+  <!-- <el-container :style="'height:100%;background:url('+LoginBg+');background-size:cover;'"> -->
+  <el-container :style="'height:100%;background:url(../assets/login.jpg);background-size:cover;'">
     <el-row type="flex" style="width:100%;height:100%;" justify="center" align="middle">
       <el-card style="width:400px;height:300px;" shadow="always">
         <div slot="header" class="clearfix">
@@ -35,7 +36,8 @@
   </el-container>
 </template>
 <script>
-import LoginBg from "@/assets/login.jpg";
+// import LoginBg from "@/assets/login.jpg";
+const LoginBg = require('@/assets/login.jpg');
 import { login } from "@/api";
 import { setUser } from '@/utils/auth'
 export default {

+ 3 - 1
vue.config.js

@@ -1,12 +1,14 @@
 // const targetUrl = 'https://apizng.eavic.com';
 // const targetUrl = 'http://39.97.239.116:8080';
 // const targetUrl = 'http://192.168.1.200:8080';
-const targetUrl = 'http://192.168.1.195/'
+// const targetUrl = 'http://192.168.1.195/'
+const targetUrl = 'https://www.xyzshops.cn/'
 
 // const targetUrl = 'http://10.64.81.2:8080';
 
 module.exports = {
     publicPath:'./',
+    // publicPath:'../../',
     productionSourceMap: false,
     pages: {
         index: {