穿戴式运动捕获单元
- card content
- card content
- card content
+
- card content
- card content
- card content
+
@@ -180,4 +210,20 @@ const colorList = ref([
margin-bottom: 8px;
color: #666666;
}
+
+.sub-topic .topic {
+ margin-top: 40px;
+ width: calc((100% - 32px) / 2);
+}
+
+.ant-card {
+ height: 100%;
+}
+
+.ant-card :deep(.ant-card-body) {
+ height: calc(100% - 48px);
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+}
diff --git a/src/components/tall/top/TopNavbar.vue b/src/components/tall/top/TopNavbar.vue
index 2aad24c..9c436c4 100644
--- a/src/components/tall/top/TopNavbar.vue
+++ b/src/components/tall/top/TopNavbar.vue
@@ -39,7 +39,7 @@ function signOut() {
store.commit('user/setUser', null);
store.commit('projects/setProject', null);
store.commit('task/setTaskDetail', null);
- router.push({ path: '/user/signin' });
+ router.push({ path: '/experiment/user/signin' });
}
diff --git a/src/routers/index.js b/src/routers/index.js
index e6043f7..2fbc78d 100644
--- a/src/routers/index.js
+++ b/src/routers/index.js
@@ -1,14 +1,14 @@
import { createRouter, createWebHistory } from 'vue-router';
// 还有 createWebHashHistory 和 createMemoryHistory
-export const user = [{ path: '/user/signIn', name: 'signIn', component: () => import('views/user/SignIn.vue') }];
+export const user = [{ path: '/experiment/user/signIn', name: 'signIn', component: () => import('views/user/SignIn.vue') }];
export const routes = [
{
- path: '/home',
+ path: '/experiment/home',
name: 'home',
- redirect: '/home/test',
+ redirect: '/experiment/home/test',
component: () => import('views/home/Index.vue'),
- children: [{ path: '/home/test', name: 'test', component: () => import('views/detail/Test.vue') }],
+ children: [{ path: '/experiment/home/test', name: 'test', component: () => import('views/detail/Test.vue') }],
},
];
@@ -16,8 +16,8 @@ const router = createRouter({
history: createWebHistory(),
routes: [
{
- path: '/',
- redirect: '/home',
+ path: '/experiment',
+ redirect: '/experiment/home',
},
...user,
...routes,
diff --git a/src/views/detail/Test.vue b/src/views/detail/Test.vue
index 624aca6..575826e 100644
--- a/src/views/detail/Test.vue
+++ b/src/views/detail/Test.vue
@@ -1,7 +1,7 @@
- {{ taskInfo.name }}
+
@@ -51,11 +51,15 @@ watch(taskDetail, () => {
width: 100%;
height: 100%;
padding: 16px;
+ overflow-y: auto;
+}
+
+::-webkit-scrollbar {
+ width: 0 !important;
}
.task-con {
width: 100%;
min-height: 500px;
- max-height: 100%;
}
diff --git a/src/views/user/SignIn.vue b/src/views/user/SignIn.vue
index 52a6dee..dff770f 100644
--- a/src/views/user/SignIn.vue
+++ b/src/views/user/SignIn.vue
@@ -74,7 +74,7 @@ function handleSingIn() {
console.log('登录成功, 欢迎回来');
setTimeout(() => {
// 跳转到首页
- router.push({ path: '/home' });
+ router.push({ path: '/experiment/home' });
}, 1000);
} catch (error) {
throw new Error(error);