代码拉取完成,页面将自动刷新
同步操作将从 ssssssss-team/magic-editor 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
magic-editor
是 magic-api 配套的前端,目前有两种引入方式。
在 magic-api-spring-boot-starter 中已经是自动引入了,所以无需配置
按照 magic-api-spring-boot-starter 的集成方式,启动之后访问http://localhost:9999/magic/web
即可
npm install --save magic-editor
或 npm i --save magic-editor
<template>
<div id="app">
<!-- 引入magic-editor组件 -->
<magic-editor :config="config"/>
</div>
</template>
<script>
// 引入组件
import MagicEditor from 'magic-editor'
// 引入样式
import 'magic-editor/dist/magic-editor.css'
export default {
name: 'App',
components: {
MagicEditor
},
data(){
return {
config:{
baseURL: 'http://localhost:9999/magic/web', //配置后台服务
serverURL: 'http://localhost:9999/' //配置接口实际路径
// 其它配置请参考文档
}
}
}
}
</script>
<style>
html,body,#app {
width: 100%;
height:100%;
margin:0;
padding:0
}
</style>
需要的注意的是,这种引入方式,后台同样需要配置magic-api.web
,但可以不需要magic-editor
的jar
,可以在pom中排除掉
<dependency>
<groupId>org.ssssssss</groupId>
<artifactId>magic-api-spring-boot-starter</artifactId>
<version>lastest-version</version><!-- 自行替换为最新的版本号 -->
<exclusions>
<exclusion>
<groupId>org.ssssssss</groupId>
<artifactId>magic-editor</artifactId>
</exclusion>
</exclusions>
</dependency>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。