| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <script>
- import Prompt from '!!raw-loader!./prompt.md'
- import Vue from 'vue'
- import {
- getStaticPageList,
- getStaticPageDetail,
- getMenuInfo
- } from '@/api/static_page'
- export default Vue.extend({
- name: 'StaticPagePlugin',
- data() {
- return {
- type: 'tool',
- // tool:methods内所有方法将作为AI能力加载
- // page:template将被注册为页面,与Vue页面无异
- // plugin:template将被加载至AI助手的小工具中
- prompt: Prompt
- }
- },
- methods: {
- getPageList(data) {
- return getStaticPageList(data)
- },
- getPageData(data) {
- return getStaticPageDetail(data)
- },
- getPageMenuInfo(data) {
- return getMenuInfo({
- data,
- route_path: 'layout_menu.index'
- })
- }
- }
- })
- </script>
- <template />
- <style scoped lang="scss">
- </style>
|