fix: 内网环境请求远程axios.js报错

This commit is contained in:
fit2cloud-chenyw 2021-06-30 16:45:32 +08:00
parent 9db28c74a4
commit 5b8b3671e6
4 changed files with 1760 additions and 2 deletions

View File

@ -38,6 +38,7 @@ public class ShiroServiceImpl implements ShiroService {
filterChainDefinitionMap.put("/link/**", ANON);
filterChainDefinitionMap.put("/index.html", ANON);
filterChainDefinitionMap.put("/link.html", ANON);
filterChainDefinitionMap.put("/axios.map", ANON);
//验证链接
filterChainDefinitionMap.put("/api/link/validate**", ANON);

1757
frontend/public/axios.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="axios.js"></script>
<title><%= webpackConfig.name %></title>
</head>
<body>

View File

@ -1,4 +1,4 @@
import axios from 'axios'
// import axios from 'axios'
// import { MessageBox, Message } from 'element-ui'
import store from '@/store'
import { $alert, $error } from './message'