提交 e71e1539 编写于 作者: Z zhaoke

* Remove unused code.

上级 62983838
......@@ -73,6 +73,7 @@ import FormItem from "@/components/FormItem.vue";
import notification from "@/utils/notification";
import { useForm } from "@/utils/form";
import Switch from "@/components/Switch.vue";
import { ZentaoData } from "@/store/zentao";
export interface FormWorkspaceProps {
show?: boolean;
......@@ -134,8 +135,7 @@ const submit = () => {
const clearFormData = () => {
modelRef.value = {};
};
const store = useStore<{ Workspace: WorkspaceData }>();
const store = useStore<{ Workspace: WorkspaceData, Zentao: ZentaoData }>();
const currSite = computed<any>(() => store.state.Zentao.currSite);
const currProduct = computed<any>(() => store.state.Zentao.currProduct);
const langs = computed<any[]>(() => store.state.Zentao.langs);
......@@ -143,7 +143,6 @@ const modules = computed<any[]>(() => store.state.Zentao.modules);
const suites = computed<any[]>(() => store.state.Zentao.suites);
const tasks = computed<any[]>(() => store.state.Zentao.tasks);
const fetchData = () => {
store.dispatch("WorkspaceOld/list", currProduct.value.id);
if(currSite.value.id == undefined || currSite.value.id <= 1 || currProduct.value.id == undefined) return;
store.dispatch("Zentao/fetchModules", {
siteId: currSite.value.id,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册