优化前段测试

This commit is contained in:
java110 2020-03-10 18:00:11 +08:00
parent ce298ba16f
commit 6c49b26acf
2 changed files with 20 additions and 4 deletions

12
app.js
View File

@ -17,10 +17,14 @@ app.set('view engine', 'jade');
app.use(logger('dev'));
app.use('/callComponent', createProxyMiddleware({
target: 'http://192.168.0.104:8443', // 目标代理地址
changeOrigin: true
}));
let option = createProxyMiddleware({
target: 'http://hc.demo.winqi.cn:8012', // 目标代理地址
changeOrigin: true,
logLevel: "debug"
});
app.use('/callComponent', option);
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());

View File

@ -13,6 +13,18 @@
<title>HC小区管理系统|java110</title>
<vc:create name="commonTop" location= "head"></vc:create>
<link rel="stylesheet" href="/css/bootstrap/bootstrap.min.css"/>
<link href="/font-awesome/css/font-awesome.css" rel="stylesheet"/>
<!-- Toastr style -->
<link href="/css/plugins/toastr/toastr.min.css" rel="stylesheet"/>
<!-- Gritter -->
<link href="/js/plugins/gritter/jquery.gritter.css" rel="stylesheet"/>
<link href="/css/plugins/select2/select2.min.css" rel="stylesheet">
<link href="/css/animate.css" rel="stylesheet"/>
<link href="/css/style.css" rel="stylesheet"/>
<link rel="stylesheet" href="/css/common.css"/>
<link rel="stylesheet" href="/css/bootstrap/bootstrap-datetimepicker.min.css"/>
<script src="/js/bootstrap/jquery-3.3.1.min.js"></script>
<script src="/js/vue/vue.min.js"></script>
<script src="/js/vue/vue-resource.min.js"></script>