156
This commit is contained in:
14
cdTMP/src/api/generate/dgGenerate.js
Normal file
14
cdTMP/src/api/generate/dgGenerate.js
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import { request } from "@/api/request"
|
||||||
|
export default {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @returns 测试用例数据
|
||||||
|
*/
|
||||||
|
createTestDemand(params = {}) {
|
||||||
|
return request({
|
||||||
|
url: `/generate/create/testdemand`,
|
||||||
|
method: "get",
|
||||||
|
params
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<ul class="right-side">
|
<ul class="right-side">
|
||||||
<li>
|
<li>
|
||||||
<a-tooltip content="搜索-暂无">
|
<a-tooltip content="搜索-暂无">
|
||||||
<a-button class="nav-btn" type="outline" :shape="'circle'">
|
<a-button class="nav-btn" type="outline" :shape="'circle'" @click="testCreate">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<icon-search />
|
<icon-search />
|
||||||
</template>
|
</template>
|
||||||
@@ -103,6 +103,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
// 测试接口导入
|
||||||
|
import dgGenerateApi from "@/api/generate/dgGenerate"
|
||||||
|
// ~~~~~~~~~
|
||||||
import { computed, inject } from "vue"
|
import { computed, inject } from "vue"
|
||||||
import { useAppStore } from "@/store"
|
import { useAppStore } from "@/store"
|
||||||
import { useFullscreen } from "@vueuse/core"
|
import { useFullscreen } from "@vueuse/core"
|
||||||
@@ -154,6 +157,11 @@ const handleClickLogo = () => {
|
|||||||
console.log("回到workplace")
|
console.log("回到workplace")
|
||||||
router.push({ name: "Workplace" })
|
router.push({ name: "Workplace" })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 测试生成文档
|
||||||
|
const testCreate = ()=>{
|
||||||
|
dgGenerateApi.createTestDemand()
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
|||||||
11
cdTMP/test.py
Normal file
11
cdTMP/test.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
class Student:
|
||||||
|
def func1(self):
|
||||||
|
print("我是实例方法1111")
|
||||||
|
|
||||||
|
def fn(cls):
|
||||||
|
print("我是实例方法2222")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
stu1 = Student()
|
||||||
Reference in New Issue
Block a user