张延森 5 years ago
parent
commit
114f9762dc
2 changed files with 3 additions and 1 deletions
  1. 1
    0
      public/index.html
  2. 2
    1
      vue.config.js

+ 1
- 0
public/index.html View File

@@ -6,6 +6,7 @@
6 6
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
7 7
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8 8
     <link rel="stylesheet" href="//at.alicdn.com/t/font_1070150_8lyiyriedbr.css">
9
+    <script src="./static/abc.js"></script>
9 10
     <title>后台管理系统</title>
10 11
   </head>
11 12
   <body>

+ 2
- 1
vue.config.js View File

@@ -1,9 +1,10 @@
1 1
 module.exports = {
2 2
   publicPath: './',
3 3
   devServer: {
4
+    port: 9000,
4 5
     proxy: {
5 6
       '/api': {
6
-        target: 'http://192.168.0.11:8080',
7
+        target: 'http://127.0.0.1:8080',
7 8
         changeOrigin: true,
8 9
         // pathRewrite: {
9 10
         //   '^/api': '/'