瀏覽代碼

文章入口

natasha 1 月之前
父節點
當前提交
323658865b
共有 2 個文件被更改,包括 8 次插入10 次删除
  1. 0 2
      src/api/article.js
  2. 8 8
      src/views/book/courseware/data/bookType.js

+ 0 - 2
src/api/article.js

@@ -1,6 +1,4 @@
 import { http } from '@/utils/http';
 import { http } from '@/utils/http';
-import store from '@/store';
-import { app } from '@/store/mutation-types';
 
 
 //分句
 //分句
 export function segSentences(data) {
 export function segSentences(data) {

+ 8 - 8
src/views/book/courseware/data/bookType.js

@@ -206,14 +206,14 @@ export const bookTypeOption = [
     value: 'question',
     value: 'question',
     label: '题型组件',
     label: '题型组件',
     children: [
     children: [
-      // {
-      //   value: 'article',
-      //   label: '文章组件',
-      //   icon: '',
-      //   component: Article,
-      //   set: ArticleSetting,
-      //   preview: ArticlePreview,
-      // },
+      {
+        value: 'article',
+        label: '文章组件',
+        icon: '',
+        component: Article,
+        set: ArticleSetting,
+        preview: ArticlePreview,
+      },
       {
       {
         value: 'select',
         value: 'select',
         label: '选择组件',
         label: '选择组件',