I would like to ask element-ui how to achieve the effect of loading a linear progress bar at the top of the page.

how to implement https://blog.csdn.net/CodingN.
, please give me a thought, thank you


add


https://github.com/hilongjw/v.


when routing hooks or api requests.

give you a library. nprogress ;

use the hook of vue-router if used in element-ui:

router.beforeEach((to, from, next) => {
    NProgress.start();
});

router.afterEach(() => {
    NProgress.done();
});
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4c1d8-44e7e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4c1d8-44e7e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?