You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
516 B
25 lines
516 B
import { SCENE, api } from '@/config/index';
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state: {
|
|
apiPath: '/ptccsens/v1.0/finance', // 财务条apiPath
|
|
},
|
|
getters: {
|
|
// 完整路径
|
|
fullPath({ apiPath }) {
|
|
return `${api.baseUrl[SCENE]}${apiPath}`;
|
|
},
|
|
},
|
|
mutations: {
|
|
/**
|
|
* 设置apiPath
|
|
* @param {object} state
|
|
* @param {string} path 路径可能随着业务、项目变化
|
|
*/
|
|
setApiPath(state, path) {
|
|
state.apiPath = path;
|
|
},
|
|
},
|
|
actions: {},
|
|
};
|
|
|