Why is the packaged entry file index.html/ instead of index.html? for the vue project built with webpack?

there is only one page for the project at present, and there may be more single pages in the future. So my router is just like this for now:

import Vue from "vue"
import Router from "vue-router"
import index from "@/components/index"

Vue.use(Router);

export default new Router({
  mode: "history",
  routes: [
    {
      path: "/",
      name: "index",
      component: index
    }
  ]
})

used

in the project
mode:history

so there is no such ugly thing as-sharp/ after that.

the problem now is that when you package it to the server, enter the URL, and then you will automatically match a /
to me. For example, when I type www.abc.com, the address bar will become www.abc.com/
. Could you tell me how to remove this?

Mar.10,2021

remember that I have read the relevant articles about the problem of adding "/" after the domain name, and searched it under:

if you add "/" at the end of the domain name, the server will directly return to the default page in the root directory of the site; without the "/" domain name, the server will judge again and then visit the default page in the root directory of the site.

in fact, there is no special problem. You have to get rid of it. Try it this way:

{
  path: '',
  name: 'index',
  component: index
}
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-1b3ab60-2c230.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-1b3ab60-2c230.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?