解决两个问题:
1、config.js中写错URL导致axios请求失败; 2、axios为CROS发送两次请求,第一次的method是options,在token过滤器中需要忽略。
This commit is contained in:
@@ -2,18 +2,20 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2022-12-14 15:12:46
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-01-11 14:20:04
|
||||
* @FilePath: \admin_system\src\store\index.js
|
||||
* @LastEditTime: 2023-02-04 15:59:09
|
||||
* @FilePath: /IT工具综合平台/src/store/index.js
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
import { createStore } from 'vuex';
|
||||
import app from "./modules/app";
|
||||
import requirement from "./modules/requirement";
|
||||
|
||||
const store = createStore({
|
||||
modules: {
|
||||
app,
|
||||
requirement,
|
||||
}
|
||||
});
|
||||
|
||||
|
21
code/web/IT工具综合平台/src/store/modules/requirement.js
Normal file
21
code/web/IT工具综合平台/src/store/modules/requirement.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* @Author: Kane
|
||||
* @Date: 2023-02-04 15:55:16
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-04 16:00:54
|
||||
* @FilePath: /IT工具综合平台/src/store/modules/requirement.js
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
|
||||
const state = {
|
||||
status: {},
|
||||
status_update_time: new Date(),
|
||||
};
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
};
|
||||
|
Reference in New Issue
Block a user