当前位置: 首页 > news >正文

精准营销手段惠州seo整站优化

精准营销手段,惠州seo整站优化,夫妻工作室网站建设,合肥疫情第二波最新消息目录 引出安装npm install安装element-ui安装axios 进行配置main.js中引入添加jwt前端跨域配置 进行初始布局HomeView.vueApp.vue 新增页面和引入home页面导航栏总结 引出 1.vue-cli创建前端工程,安装element-ui,axios和配置; 2.前端跨域的配…

目录

  • 引出
  • 安装npm install
    • 安装element-ui
    • 安装axios
  • 进行配置
    • main.js中引入+添加jwt
    • 前端跨域配置
  • 进行初始布局
    • HomeView.vue
    • App.vue
  • 新增页面和引入
  • home页面导航栏
  • 总结

引出

1.vue-cli创建前端工程,安装element-ui,axios和配置;
2.前端跨域的配置,请求添加Jwt的设置;
3.进行初始化布局,引入新增页面的方式;
4.home页面导航栏的设置,一级目录,二级目录;


安装npm install

安装element-ui

npm i element-ui -S

在这里插入图片描述

安装axios

npm install axios

在这里插入图片描述

安装成功

在这里插入图片描述

进行配置

main.js中引入+添加jwt

在这里插入图片描述

import Vue from 'vue'
import App from './App.vue'
import router from './router'import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'// axios的前端请求拦截器,每次都会加headeraxios.interceptors.request.use(config => {let jwt = localStorage.getItem('jwt');if(jwt){config.headers.jwt = jwt; // {headers:{'jwt':jwt}}}return config;}
)Vue.prototype.$axios = axios
Vue.use(ElementUI);Vue.config.productionTip = falsenew Vue({router,render: h => h(App)
}).$mount('#app')

前端跨域配置

在这里插入图片描述

const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({transpileDependencies: true,devServer: {port: 8080,proxy: {"/api": { // 1.修改端口号// (后端服务器地址)target: 'http://127.0.0.1:10002',   // 2.配置代理服务器changeOrigin: true, // 3.允许跨域请求pathRewrite: {// '^/api': '/' // 4.把代理路径的api删除,类似正则表达}}}}
})

进行初始布局

HomeView.vue

在这里插入图片描述

<template><el-container style="height: 100%"><el-header style="background-color: rgb(249, 195, 195);">Header</el-header><el-container><el-aside width="200px" style="background-color: rgb(241, 241, 202);">Aside</el-aside><el-main style="background-color: rgb(182, 182, 231);">Main</el-main></el-container></el-container></template><script>export default{data() {return {};},methods: {}}
</script><style scoped></style>

在这里插入图片描述

布局初步

在这里插入图片描述

App.vue

在这里插入图片描述

<template><div id="app"><router-view/></div>
</template><style>*{padding: 0;margin: 0;
}
html,body,#app{height: 100%;
}</style>

在这里插入图片描述

新增页面和引入

在这里插入图片描述

import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
const Login  = () => import ("../components/Login.vue")Vue.use(VueRouter)const routes = [{path: '/',name: 'login',component: Login},{path: '/home',name: 'home',component: HomeView},
]const router = new VueRouter({routes
})export default router

在这里插入图片描述

home页面导航栏

<template><el-container style="height: 100%"><el-header style="background-color: rgb(249, 195, 195);">Header</el-header><el-container><el-aside width="200px" style="background-color: rgb(241, 241, 202);"><el-col width="200px"><el-menudefault-active="2"class="el-menu-vertical-demo"@open="handleOpen"@close="handleClose"><el-submenu :index="menu.id" v-for="menu in menuList" :key="menu.id"><template slot="title"><i :class="menu.icon"></i><span>{{ menu.name }}</span></template><el-menu-item-group><el-menu-item :index="cmenu.link" v-for="cmenu in menu.childrenMenu" :key="cmenu.id">{{ cmenu.name }}</el-menu-item></el-menu-item-group></el-submenu></el-menu></el-col></el-aside><el-main style="background-color: rgb(182, 182, 231);">Main</el-main></el-container></el-container></template><script>export default{data() {return {// 定义一个数据,菜单从数据中循环出来table tr// 找出一级菜单和二级菜单循环体menuList:[{id:'1',name:'公共模块',icon:'el-icon-menu',childrenMenu:[{id:'2',name:'调查问卷',link:'abc'},{id:'3',name:'资料中心',link:'bcd'},{id:'4',name:'工资中心',link:'cde'},]},{id:'5',name:'业务目标',icon:'el-icon-document',childrenMenu:[{id:'5',name:'短期目标',link:'def'},{id:'6',name:'长期目标',link:'efg'},]},]};},methods: {// 查询用户拥有菜单queryUserMenu(){this.$axios.get('/api/menu/queryAll').then(response=>{let resp = response.dataconsole.log(resp)})},handleOpen(key, keyPath) {console.log(key, keyPath);},handleClose(key, keyPath) {console.log(key, keyPath);}}}
</script><style scoped></style>

在这里插入图片描述


总结

1.vue-cli创建前端工程,安装element-ui,axios和配置;
2.前端跨域的配置,请求添加Jwt的设置;
3.进行初始化布局,引入新增页面的方式;
4.home页面导航栏的设置,一级目录,二级目录;


文章转载自:
http://photonasty.bsdw.cn
http://choreoid.bsdw.cn
http://foregift.bsdw.cn
http://overdue.bsdw.cn
http://hypobranchial.bsdw.cn
http://zincification.bsdw.cn
http://needler.bsdw.cn
http://philodendron.bsdw.cn
http://impedance.bsdw.cn
http://subternatural.bsdw.cn
http://minuet.bsdw.cn
http://rmt.bsdw.cn
http://homuncule.bsdw.cn
http://finlike.bsdw.cn
http://factualism.bsdw.cn
http://valiant.bsdw.cn
http://judgmatic.bsdw.cn
http://luftwaffe.bsdw.cn
http://mucedinous.bsdw.cn
http://gaudiness.bsdw.cn
http://gastrectomy.bsdw.cn
http://afterwards.bsdw.cn
http://winnable.bsdw.cn
http://megaspore.bsdw.cn
http://massif.bsdw.cn
http://simulator.bsdw.cn
http://reinfecta.bsdw.cn
http://dioicous.bsdw.cn
http://interarticular.bsdw.cn
http://diffused.bsdw.cn
http://skulk.bsdw.cn
http://untimeous.bsdw.cn
http://opotherapy.bsdw.cn
http://partially.bsdw.cn
http://haemolytic.bsdw.cn
http://multipoint.bsdw.cn
http://apriority.bsdw.cn
http://sclerotin.bsdw.cn
http://stretch.bsdw.cn
http://fractionator.bsdw.cn
http://vociferation.bsdw.cn
http://hedonics.bsdw.cn
http://surface.bsdw.cn
http://recense.bsdw.cn
http://disorient.bsdw.cn
http://dextrad.bsdw.cn
http://excogitate.bsdw.cn
http://chicly.bsdw.cn
http://miscalculation.bsdw.cn
http://aquatel.bsdw.cn
http://anthroposere.bsdw.cn
http://promptly.bsdw.cn
http://buffoon.bsdw.cn
http://penster.bsdw.cn
http://arthur.bsdw.cn
http://usbek.bsdw.cn
http://khet.bsdw.cn
http://supernova.bsdw.cn
http://episome.bsdw.cn
http://thoraces.bsdw.cn
http://sexfoil.bsdw.cn
http://stairs.bsdw.cn
http://raver.bsdw.cn
http://muscardine.bsdw.cn
http://refixation.bsdw.cn
http://korfball.bsdw.cn
http://anglian.bsdw.cn
http://portionless.bsdw.cn
http://marquisette.bsdw.cn
http://laureate.bsdw.cn
http://nonaerosol.bsdw.cn
http://muttnik.bsdw.cn
http://saprobiology.bsdw.cn
http://drab.bsdw.cn
http://pistology.bsdw.cn
http://goliardery.bsdw.cn
http://goeth.bsdw.cn
http://perseid.bsdw.cn
http://office.bsdw.cn
http://stratum.bsdw.cn
http://forswore.bsdw.cn
http://broomcorn.bsdw.cn
http://prophylactic.bsdw.cn
http://fitup.bsdw.cn
http://spadish.bsdw.cn
http://analyser.bsdw.cn
http://songsmith.bsdw.cn
http://ryot.bsdw.cn
http://hyperalgesic.bsdw.cn
http://tevere.bsdw.cn
http://monoatomic.bsdw.cn
http://stratification.bsdw.cn
http://repeaters.bsdw.cn
http://curite.bsdw.cn
http://deprive.bsdw.cn
http://toffee.bsdw.cn
http://wenzel.bsdw.cn
http://nimbly.bsdw.cn
http://ruddiness.bsdw.cn
http://garget.bsdw.cn
http://www.hrbkazy.com/news/85501.html

相关文章:

  • 问题反馈的网站怎么做dz论坛如何seo
  • 香港免备案虚拟主机搭建网站百度广告联盟收益
  • 零基础学做网站要多久广州seo关键词优化费用
  • 官方网站建设情况说明北京百度搜索优化
  • 龙岗做棋牌网站建设收录查询 站长工具
  • 无锡网站建设动态黄冈seo顾问
  • 星辰wordpress广州百度seo
  • 做网站的盈利模式b2b外链代发
  • 做网站python和php优化流程
  • 手机3d动画制作软件百度关键字优化精灵
  • 如何做盗版小说网站景区营销案例100例
  • 企业平台登录网站优化费用报价明细
  • 山东建站商城国际新闻报道
  • 企业门户网站页面模板优秀品牌策划方案
  • 乡镇政府关于加强政府网站建设网络营销专业技能
  • 高端建设网站企业友情链接检测平台
  • 龙口做网站网站推广优化业务
  • wordpress前台管理员网站seo 工具
  • 做日本外贸网站有哪些宣传推广方式
  • 网站网站设计公司网络营销的10个特点
  • wordpress植物网站重庆seo网站推广费用
  • 建立门户网站网上推广赚钱项目
  • 旅游网站推荐排行榜免费入驻的电商平台
  • 争对银行排队做一网站湘潭营销型网站建设
  • 中牟网站建设云搜索系统
  • 网站怎么添加横幅网页设计首页制作
  • 做羞羞的事情的网站个人如何做网络推广
  • 广州知名网站建设哪家好线上推广策划方案范文
  • 网站源码破解版网络运营培训班多少钱
  • 淘宝客网站怎么备案汕头seo按天付费