• home > webfront > ECMAS > vue >

    vue router warnging:Expected indentation of 10 spaces but found 12

    Author:zhoulujun Date:

    Expected indentation of 10 spaces but found 12……​出错点在:非嵌套路由必须包含前导斜杠字符——Non-nested routes must include a leading slash character

    在优化vue项目的中的路由时候(嵌套太深,需要调整),然后挪出路由后,发现报错

    Expected indentation of 10 spaces but found 12

    出错点

    Non-nested routes must include a leading slash character. Fix the following routes:

    非嵌套路由必须包含前导斜杠字符

    具体可参考:vue-router https://blog.csdn.net/Ada_lake/article/details/102650373

    只要如下:

    单页面应用: 基于路由和组件在这里插入图片描述

    • route: 一条路由

    • routes:一组路由

    • router: 管理路由

    • 客户端中的路由: dom元素显示或者隐藏。==》基于hash和基于HTML5 history api

    vue router 原理



    转载本站文章《vue router warnging:Expected indentation of 10 spaces but found 12》,
    请注明出处:https://www.zhoulujun.cn/html/webfront/ECMAScript/vue/8567.html

    延伸阅读: