Skip to content

Commit 80cf32e

Browse files
committed
optimize: optimize other pages
Signed-off-by: yuluo-yx <[email protected]>
1 parent 1e41be2 commit 80cf32e

File tree

15 files changed

+942
-679
lines changed

15 files changed

+942
-679
lines changed

console/atest-ui/src/api/cert/cert.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,26 @@ import { post } from '../axios'
1818
import { getToken } from '../../utils/auth/token'
1919

2020
export const GetSecrets = () =>
21-
post('/api/server.Runner/GetSecrets', null, {
21+
post('/server.Runner/GetSecrets', null, {
2222
'X-Auth': getToken()
2323
})
2424

2525
export const FunctionsQuery = (params: string) =>
26-
post('/api/server.Runner/FunctionsQuery', params, {
26+
post('/server.Runner/FunctionsQuery', params, {
2727
'X-Auth': getToken()
2828
})
2929

30-
export const DeleteSecret = (name: string) =>
31-
post('/api/server.Runner/DeleteSecret', name, {
30+
export const DeleteSecret = (name: any) =>
31+
post('/server.Runner/DeleteSecret', name, {
3232
'X-Auth': getToken()
3333
})
3434

3535
export const CreateSecret = (params: any) =>
36-
post('/api/server.Runner/CreateSecret', params, {
36+
post('/server.Runner/CreateSecret', params, {
3737
'X-Auth': getToken()
3838
})
3939

4040
export const UpdateSecret = (params: any) =>
41-
post('/api/server.Runner/UpdateSecret', params, {
41+
post('/server.Runner/UpdateSecret', params, {
4242
'X-Auth': getToken()
43-
})
43+
})

console/atest-ui/src/api/mock/mock.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ limitations under the License.
1717
import { post } from '../axios'
1818
import { getToken } from '../../utils/auth/token'
1919

20-
export const ReloadMockServer = (params: string) =>
21-
post('/api/server.Mock/Reload', params, {
20+
export const ReloadMockServer = (params: any) =>
21+
post('/server.Mock/Reload', params, {
2222
'X-Auth': getToken()
2323
})
2424

2525
export const GetMockConfig = () =>
26-
post('/api/server.Mock/GetConfig', null, {
26+
post('/server.Mock/GetConfig', null, {
2727
'X-Auth': getToken()
2828
})

console/atest-ui/src/api/store/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { post } from '../axios'
1818
import { getToken } from '../../utils/auth/token'
1919

2020
export const CreateStore = (params: any) =>
21-
post('/api/server.Runner/CreateStore', params, {
21+
post('/server.Runner/CreateStore', params, {
2222
'X-Auth': getToken()
2323
})
2424

console/atest-ui/src/api/test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const UpdateTestCase = (params: any) =>
8787
'X-Auth': getToken()
8888
})
8989

90-
export const GetTestCase = (params: TestCase) =>
90+
export const GetTestCase = (params: any) =>
9191
post('/server.Runner/GetTestCase', params, {
9292
'X-Store-Name': Cache.GetCurrentStore().name,
9393
'X-Auth': getToken()

console/atest-ui/src/assets/main.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
margin: 0 auto;
66
padding: 0 auto;
77
height: 100vh;
8-
font-weight: normal;overflow: hidden;
8+
font-weight: normal;
9+
/* 溢出时,显示屏幕滚动条 */
10+
overflow: hidden;
911
}
1012

1113
a,

console/atest-ui/src/components/LeftSideComponent.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ const router = useRouter()
2525
height: calc(100vh - 59px);
2626
background-color: rgb(243, 244, 246);
2727
--el-menu-active-color: #409EFF;
28+
overflow-y: auto; /* 启用垂直滚动条 */
2829
}
2930
</style>

0 commit comments

Comments
 (0)