The process of creating a new page in crmeb

Time:2022-5-14

It can be divided into adding pages in the original folder and creating a new folder, and creating pages in this folder
1. Add a new page to the original folder:

For example, under the product folder, create a new page of commodity guarantee service, productguarantee
① First, create a new folder productguarantee under the product folder in the views directory, and then create an index Vue file

The process of creating a new page in crmeb

② Then, find the product under moudles in the router folder JS file, add the link and page address you want to jump to the newly added page under the file

The process of creating a new page in crmeb

{
path: ‘guarantee’,
name: ‘ProductGuarantee’,
meta: {

Title: 'guarantee service',
noCache: true

},
component: () => import(‘@/views/product/productGuarantee/index.vue’)
}

③ Access in browser:http://localhost:9528/admin/p…

The process of creating a new page in crmeb
Add a new folder and a new page under views. For example, now add a station folder under views

The process of creating a new page in crmeb
① First, create a new station folder under views, and create a new notice folder and index Vue file

The process of creating a new page in crmeb

② Then create a new station in the moudles folder under the router folder JS, declare the stationrouter and export it

The process of creating a new page in crmeb

import Layout from ‘@/layout’
import { roterPre } from ‘@/settings’
const stationRouter =
{

path: `${roterPre}/station`,
name: 'station',
meta: {
  icon: '',
  Title: 'announcement list'
},
alwaysShow: true,
component: Layout,
children: [
  {
    path: 'notice',
    name: 'stationNotice',
    meta: {
      Title: 'announcement list'
    },
    component: () => import('@/views/station/notice/index')
  }
]

}
export default stationRouter

③ Index. Under router folder Import in JS
The process of creating a new page in crmeb
④ Access on the page:http://localhost:9528/admin/s…
The process of creating a new page in crmeb

If you think this article is useful to you, please click Star:http://github.crmeb.net/u/defuesteem it a favor!

Recommended Today

JSP grab web page code program

<%@ page contentType=”text/html;charset=gb2312″%><%   String sCurrentLine;   String sTotalString;   sCurrentLine=””;   sTotalString=””;   java.io.InputStream l_urlStream;   java.net.URL l_url = new java.net.URL(“http://www.163.net/”);   java.net.HttpURLConnection l_connection = (java.net.HttpURLConnection) l_url.openConnection();   l_connection.connect();   l_urlStream = l_connection.getInputStream();   java.io.BufferedReader l_reader = new java.io.BufferedReader(new java.io.InputStreamReader(l_urlStream));   while ((sCurrentLine = l_reader.readLine()) != null)   {   sTotalString+=sCurrentLine;   }   out.println(sTotalString);   %> Postscript Although the code is relatively simple, I think that according to this, […]