| | |
| | | </div> |
| | | </div> |
| | | <div class="hero-actions"> |
| | | <el-button size="mini" @click="goPromptCenter">Prompt配置</el-button> |
| | | <el-button type="primary" size="mini" @click="addRoute">新增路由</el-button> |
| | | <el-button size="mini" @click="exportRoutes">导出JSON</el-button> |
| | | <el-button size="mini" @click="triggerImport">导入JSON</el-button> |
| | |
| | | displayRouteName: function(route) { |
| | | var value = route && route.name ? String(route.name) : ''; |
| | | return this.translateLegacyText(value); |
| | | }, |
| | | goPromptCenter: function() { |
| | | window.location.href = 'prompt_config.html'; |
| | | }, |
| | | handleRouteNameInput: function(route, value) { |
| | | if (!route) { |