Merge branch 'master' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
b5b5d3aa54
|
@ -50,7 +50,7 @@ public class TestPlanController {
|
||||||
QueryTestPlanRequest request = new QueryTestPlanRequest();
|
QueryTestPlanRequest request = new QueryTestPlanRequest();
|
||||||
request.setWorkspaceId(workspaceId);
|
request.setWorkspaceId(workspaceId);
|
||||||
request.setProjectId(projectId);
|
request.setProjectId(projectId);
|
||||||
return testPlanService.listTestPlan(request);
|
return testPlanService.listTestPlanByProject(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/list/all")
|
@PostMapping("/list/all")
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import Vue from "vue";
|
import Vue from "vue";
|
||||||
import VueRouter from 'vue-router'
|
import VueRouter from 'vue-router'
|
||||||
import RouterSidebar from "./RouterSidebar";
|
import RouterSidebar from "./RouterSidebar";
|
||||||
import axios from "axios";
|
|
||||||
import Setting from "@/business/components/settings/router";
|
import Setting from "@/business/components/settings/router";
|
||||||
import API from "@/business/components/api/router";
|
import API from "@/business/components/api/router";
|
||||||
import Performance from "@/business/components/performance/router";
|
import Performance from "@/business/components/performance/router";
|
||||||
|
@ -31,8 +30,8 @@ router.beforeEach((to, from, next) => {
|
||||||
|
|
||||||
//解决localStorage清空,cookie没失效导致的卡死问题
|
//解决localStorage清空,cookie没失效导致的卡死问题
|
||||||
if (!localStorage.getItem('Admin-Token')) {
|
if (!localStorage.getItem('Admin-Token')) {
|
||||||
axios.get("/signout");
|
// axios.get("/signout");
|
||||||
console.log("signout");
|
// console.log("signout");
|
||||||
localStorage.setItem('Admin-Token', "{}");
|
localStorage.setItem('Admin-Token', "{}");
|
||||||
window.location.href = "/login";
|
window.location.href = "/login";
|
||||||
next();
|
next();
|
||||||
|
|
Loading…
Reference in New Issue