修正CROS filter映射错误。

This commit is contained in:
Kane 2023-01-25 01:01:44 +08:00
parent 5f829dba7a
commit d5ba739ce5
4 changed files with 42 additions and 3 deletions

View File

@ -32,6 +32,7 @@
<url-pattern>*.do</url-pattern> <url-pattern>*.do</url-pattern>
</filter-mapping> </filter-mapping>
<!-- 用于实现跨域访问的Filter --> <!-- 用于实现跨域访问的Filter -->
<filter> <filter>
<filter-name>cros-filter</filter-name> <filter-name>cros-filter</filter-name>
@ -39,7 +40,7 @@
</filter> </filter>
<filter-mapping> <filter-mapping>
<filter-name>cros-filter</filter-name> <filter-name>cros-filter</filter-name>
<url-pattern>*.do</url-pattern> <url-pattern>*</url-pattern>
</filter-mapping> </filter-mapping>

View File

@ -2,7 +2,7 @@
* @Author: Kane * @Author: Kane
* @Date: 2022-12-14 15:12:46 * @Date: 2022-12-14 15:12:46
* @LastEditors: Kane * @LastEditors: Kane
* @LastEditTime: 2023-01-12 14:52:09 * @LastEditTime: 2023-01-25 00:31:59
* @FilePath: \admin_system\src\router\index.js * @FilePath: \admin_system\src\router\index.js
* @Description: 定义应用路由配置 * @Description: 定义应用路由配置
* *
@ -71,6 +71,15 @@ const routes = [
}, },
component: () => import("../views/info/StaffInfo.vue"), component: () => import("../views/info/StaffInfo.vue"),
}, },
{
path: "/editStuffInfo",
name: "EditStaffInfo",
hidden: true,
meta: {
title: "编辑人员信息",
},
component: () => import("../views/info/EditStaffInfo.vue"),
},
{ {
path: "/newsIndex", path: "/newsIndex",
name: "NewsIndex", name: "NewsIndex",

View File

@ -2,7 +2,7 @@
* @Author: Kane * @Author: Kane
* @Date: 2022-12-22 09:10:20 * @Date: 2022-12-22 09:10:20
* @LastEditors: Kane * @LastEditors: Kane
* @LastEditTime: 2023-01-18 21:45:12 * @LastEditTime: 2023-01-25 00:29:54
* @FilePath: \admin_system\src\utils\api\info\account.js * @FilePath: \admin_system\src\utils\api\info\account.js
* @Description: * @Description:
* *
@ -20,6 +20,8 @@ import store from "../../../store/index";
*/ */
export function Login(userInfo) export function Login(userInfo)
{ {
//console.log("登录请求地址:", API_URL.URL_LOGIN);
//const url = "http://localhost:8080/admin-system/account/p13_account_check";
return instance.request( return instance.request(
{ {
method: "post", method: "post",

View File

@ -0,0 +1,27 @@
<!--
* @Author: Kane
* @Date: 2023-01-24 23:25:16
* @LastEditors: Kane
* @LastEditTime: 2023-01-24 23:57:11
* @FilePath: \admin_system\src\views\info\EditStaffInfo.vue
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
-->
<template>
<div></div>
</template>
<script>
export default {
name: "EditStaffInfo",
data: function ()
{
return {};
},
};
</script>
<style scoped>
</style>