diff --git a/src/App.vue b/src/App.vue
index 258eb8a..bb3376c 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,5 +1,9 @@
-
+
+
+
+
+
diff --git a/src/api/job.ts b/src/api/job.ts
index ce4cb8e..9ad7d97 100644
--- a/src/api/job.ts
+++ b/src/api/job.ts
@@ -19,11 +19,15 @@ const axiosInstance = createAxiosInstance(axiosConfig);
* @param data
*/
export function fetchJob(data: string) {
- return axiosInstance.post("gis_agent_backend/simple/task_plan/", data, {
- headers: {
- "Content-Type": "application/json",
+ return axiosInstance.post(
+ "/gis_agent_backend/plan2level/task_plan/?modelName=gpt-4o",
+ data,
+ {
+ headers: {
+ "Content-Type": "application/json",
+ },
},
- });
+ );
}
/**
diff --git a/src/components/Case.vue b/src/components/Case.vue
index ab87768..aa75022 100644
--- a/src/components/Case.vue
+++ b/src/components/Case.vue
@@ -1,34 +1,35 @@
Elevation of Sri Lanka
-
+ Elevation of Sri Lanka
+
diff --git a/src/components/Question.vue b/src/components/Question.vue
index c3ff07f..23196f2 100644
--- a/src/components/Question.vue
+++ b/src/components/Question.vue
@@ -1,64 +1,38 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/Home.vue b/src/pages/Home.vue
index fcd1178..86dfd1c 100644
--- a/src/pages/Home.vue
+++ b/src/pages/Home.vue
@@ -1,60 +1,56 @@
-
Welcome
-
{
- router.push('/workflow');
- }
- "
- >Build Workflow
-
{
- router.push('/chat');
- }
- "
- >Go Chat
+
+
AI GIS SYSTEM
+
diff --git a/src/pages/Workflow/components/TopBox.vue b/src/pages/Workflow/components/TopBox.vue
index d8a8ce6..60e39df 100644
--- a/src/pages/Workflow/components/TopBox.vue
+++ b/src/pages/Workflow/components/TopBox.vue
@@ -7,7 +7,7 @@ import { useRouter } from "vue-router";
const router = useRouter();
const go = () => {
- router.push({ path: "/chat", replace: true });
+ router.push({ path: "/", replace: true });
};
@@ -18,7 +18,7 @@ const go = () => {
Go ChatBack
diff --git a/src/pages/Workflow/index.less b/src/pages/Workflow/index.less
index 10d9d8c..5579d0a 100644
--- a/src/pages/Workflow/index.less
+++ b/src/pages/Workflow/index.less
@@ -22,8 +22,4 @@
background-color:#F4F4F6;
padding: 0;
}
-}
-.question-button{
- position: absolute;
- bottom: 20px;
}
\ No newline at end of file
diff --git a/src/pages/Workflow/index.vue b/src/pages/Workflow/index.vue
index 6cddcca..42497fe 100644
--- a/src/pages/Workflow/index.vue
+++ b/src/pages/Workflow/index.vue
@@ -2,8 +2,6 @@
import TopBox from "@/pages/Workflow/components/TopBox.vue";
import LeftBox from "@/pages/Workflow/components/LeftBox.vue";
import RightBox from "@/pages/Workflow/components/RightBox.vue";
-import Question from "@/components/Question.vue";
-import Case from "@/components/Case.vue";
@@ -13,13 +11,11 @@ import Case from "@/components/Case.vue";
-
+
-
-
diff --git a/src/router/index.ts b/src/router/index.ts
index 5b57cfe..65a3460 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,12 +1,12 @@
import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import { default as WorkflowIndex } from "@/pages/Workflow/index.vue";
-import { default as ChatIndex } from "@/pages/Chat/index.vue";
+// import { default as ChatIndex } from "@/pages/Chat/index.vue";
import Home from "@/pages/Home.vue";
const routes: RouteRecordRaw[] = [
{ path: "/", component: Home },
{ path: "/workflow", component: WorkflowIndex },
- { path: "/chat", component: ChatIndex },
+ // { path: "/chat", component: ChatIndex },
];
const router = createRouter({
diff --git a/src/store/session.ts b/src/store/session.ts
index 1e1bef4..0597fd3 100644
--- a/src/store/session.ts
+++ b/src/store/session.ts
@@ -20,7 +20,6 @@ export const useSessionStore = defineStore("session", () => {
question: "",
});
const graphShow = ref(false);
- const questionShow = ref(true);
const loading = ref(false);
// TODO chatted?
@@ -29,14 +28,12 @@ export const useSessionStore = defineStore("session", () => {
await jobStore.updateData(session.question);
await router.push("/workflow");
graphShow.value = true;
- questionShow.value = false;
loading.value = false;
}
return {
session,
graphShow,
- questionShow,
loading,
chatted,
};
diff --git a/src/style.less b/src/style.less
index 761937b..15a6a0f 100644
--- a/src/style.less
+++ b/src/style.less
@@ -1,3 +1,5 @@
+@bg-color: #F4F4F6;
+
html,
body {
margin: 0;
@@ -6,3 +8,13 @@ body {
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
}
+
+.fade-enter, .fade-leave-to {
+ opacity: 0
+}
+.fade-leave, .fade-enter-to {
+ opacity: 1
+}
+.fade-enter-active, .fade-leave-active {
+ transition: all .2s
+}
\ No newline at end of file