项目实战--在线教育--经验总结(三)

  1. 跨域问题:
  2. VUe中:created()方法在页面渲染之前执行,但是如果我们两次跳转到同一个路由(路由A跳转到路由A算是二次跳转),created()方法只会执行一次,第二次跳转到该路由的时候created()方法不会执行 

     

  3.  

     

  4. Nginx的配置:

  5.  树形结构的数据封装:

    1.  data2: [
              {
                id: 1,
                label: "Level one 1",
                children: [
                  {
                    id: 4,
                    label: "Level two 1-1",
                    children: [
                      {
                        id: 9,
                        label: "Level three 1-1-1",
                      },
                      {
                        id: 10,
                        label: "Level three 1-1-2",
                      },
                    ],
                  },
                ],
              },
              {
                id: 2,
                label: "Level one 2",
                children: [
                  {
                    id: 5,
                    label: "Level two 2-1",
                  },
                  {
                    id: 6,
                    label: "Level two 2-2",
                  },
                ],
              },
              {
                id: 3,
                label: "Level one 3",
                children: [
                  {
                    id: 7,
                    label: "Level two 3-1",
                  },
                  {
                    id: 8,
                    label: "Level two 3-2",
                  },
                ],
              },
            ],
  6. 课程发布:

  7. 阿里云视频点播:

  8.  

    Redis的使用:

    1.  

    2.  

       

    3.  

       

    4.  

    5.  

       

       

       

       

         

       

       

         

         

        

         

       

        
posted @ 2021-10-29 18:03  张紫韩  阅读(27)  评论(0编辑  收藏  举报