This commit is contained in:
duanxiaohai 2024-08-12 09:26:34 +08:00
parent d3a5bf2a60
commit cd77c72bf4
2 changed files with 6 additions and 4 deletions

View File

@ -632,6 +632,7 @@ const getTrain = () => {
if (res.code == 200) {
tableType.data = res.data;
pagination.total = res.count;
jypxList[0].value = res.count;
}
});
};
@ -675,7 +676,7 @@ const chooseXX = (name) => {
const jypxList = reactive([
{
name: "培训人次",
value: "5000",
value: "0",
img: jypx1,
},
{
@ -963,12 +964,13 @@ const getData = async () => {
};
onMounted(() => {
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
// tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
startAutoSwitching();
});
onBeforeMount(async () => {
getData();
getTrain();
});
onBeforeUnmount(() => {

View File

@ -15,8 +15,8 @@ export default defineConfig({
// 第一个代理
"/api": {
// 匹配到啥来进行方向代理
// target: "http://10.0.0.65:8095/", //刘进
target: "http://220.191.238.50:996/", //线上
target: "http://10.0.0.65:8095/", //刘进
// target: "http://220.191.238.50:996/", //线上
changeOrigin: true, //是否支持跨域
//rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个
},