What if a vue-router dynamic route matches a normal route?

problem description

when defining a dynamic route such as / user/:id , you define a normal route / user/edit , but when accessing the latter, you jump to the previous route and don"t know how to match

.

related codes

const router = new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      component: () => import("./views/index/Index.vue"),
      children: [
        {
          path: "/",
          redirect: {
            name: "index"
          }
        },
        {
          path: "/index",
          name: "index",
          component: () => import("./views/pages/Home.vue")
        },
        {
          path: "user/:id",
          name: "user_post",
          component: ()=>import("./views/pages/Article.vue")
        }
      ]
    },
    {
      path: "/user",
      component: () => import("./views/users/User.vue"),
      children: [
        {
          path: "",
          redirect: {
            name: "profile"
          }
        },
        {
          path: "profile",
          name: "profile",
          component: () => import("./components/user/Profile.vue")
        },
        {
          path: "editor",
          name: "editor",
          component: () => import("./components/user/Editor.vue")
        }
      ]
    }
  ]
})

what I expect is to visit the user"s home page through the user"s id on the home page, and then / user/profile , / user/editor and so on are the routes for the user"s home page information, editing articles, etc., but now visiting / user/editor directly jumps to / user/:id , that is, the route of user_post. Do not know any good solution?

Jun.02,2021

has been encountered before, but I can't think of a way to convert / user/:id to query access

.
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-1eb35f7-244b.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-1eb35f7-244b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?