diff --git a/.env.ai b/.env.ai new file mode 100644 index 00000000..dffb25aa --- /dev/null +++ b/.env.ai @@ -0,0 +1,2 @@ +VUE_APP_SCOPE=ai +VUE_APP_API=http://192.168.1.87:9000 diff --git a/examples/router/autoRoutes.js b/examples/router/autoRoutes.js index 61d227e7..2b204f21 100644 --- a/examples/router/autoRoutes.js +++ b/examples/router/autoRoutes.js @@ -22,6 +22,11 @@ export default { project: require.context('../../project/fengdu', true, /\.(\/.+)\/App[A-Z][^\/]+\.vue$/, 'lazy') } break + case 'ai': + this.esm = { + project: require.context('../../project/ai', true, /\.(\/.+)\/App[A-Z][^\/]+\.vue$/, 'lazy') + } + break default: this.esm = { packages: require.context('../../packages/', true, /\.(\/.+)\/App[A-Z][^\/]+\.vue$/, 'lazy'), diff --git a/package.json b/package.json index 0f5c5775..d1b52625 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vue-cli-service serve examples/main.js", "build": "vue-cli-service build", + "dev:ai": "vue-cli-service serve examples/main.js --mode ai", "dev:dv": "vue-cli-service serve examples/main.js --mode dv", "dev:fengdu": "vue-cli-service serve examples/main.js --mode fengdu", "lib": "npm publish||(npm unpublish -f&&npm publish)", diff --git a/project/ai/AppCopilot/AppCopilot.vue b/project/ai/AppCopilot/AppCopilot.vue new file mode 100644 index 00000000..31cefea1 --- /dev/null +++ b/project/ai/AppCopilot/AppCopilot.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/ui/packages/ai/AiCopilot.vue b/ui/packages/ai/AiCopilot.vue new file mode 100644 index 00000000..a9c01d76 --- /dev/null +++ b/ui/packages/ai/AiCopilot.vue @@ -0,0 +1,107 @@ + + + + +