wangzhibo
6 天以前 da0230346106bc810664488a2b152bc24f853a44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { usePlugin } from './hooks';
import { type ModuleConfig } from '/@/cool';
 
export default (): ModuleConfig => {
    return {
        options: {
            index: 'https://cool-js.com',
            api: 'https://service.cool-js.com/api'
        },
        toolbar: {
            h5: false,
            order: 1,
            component: import('./components/ai-code/btn.vue')
        },
        pages: [
            {
                path: '/helper/ai-code',
                meta: {
                    label: 'Ai 极速编码',
                    keepAlive: true
                },
                component: () => import('./views/ai-code.vue')
            }
        ],
        onLoad() {
            const { register } = usePlugin();
            register();
        }
    };
};