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

东莞建设网站公司武汉做seo

东莞建设网站公司,武汉做seo,个人做盈利网站,网站建设成功案例方案src文件夹 src 目录指的是源代码目录,存放项目应用的源代码,包含项目的逻辑和功能实现,实际上线之后在浏览器中跑的代码就是它们 apis - 业务接口 assets - 静态资源 (图片) components - 组件 公共组件 constants…

src文件夹

src 目录指的是源代码目录,存放项目应用的源代码,包含项目的逻辑和功能实现,实际上线之后在浏览器中跑的代码就是它们

  1. apis - 业务接口

  2. assets - 静态资源 (图片)

  3. components - 组件 公共组件

  4. constants - 常量 (不需要变动的数据)

  5. directive - 全局指令 --- (指令是用于在模板中将 DOM 元素绑定到底层 Vue 实例的数据的一种特殊标记,如 v-modelv-forv-if

  6. icons - 图标 (png svg 字体图标)

  7. Layout - 搭建项目的架子 -- 布局

  8. utils - 工具函数 (转化函数 校验函数 请求request)

  9. views - 页面级组件 路由级别组件 业务组件

包文件 - package.json

可执行命令

项目依赖

开发和生产都需要:

仅在开发时需要:

应用入口 - main.js

组件树 - App.vue

路由文件 - vueRouter

只有一级路由的配置写法

  {path: '/workbench',component: Layout,children: [{path: '', // 地址为空name: 'workbench',component: () => import('@/views/workbench/index'),meta: { title: '工作台', icon: 'el-icon-eleme' }}]}

同时拥有一级和二级路由的配置写法

{path: '/park',component: Layout,name: 'park',meta: { title: '园区管理', icon: 'el-icon-office-building' },children: [{path: 'building',name: 'building',meta: { title: '楼宇管理' },component: () => import('@/views/Park/Building/index')},{path: 'enterprise',name: 'enterprise',meta: { title: '企业管理' },component: () => import('@/views/Park/Enterprise/index')}]}

状态管理 - Vuex

  • Vuex 将应用程序的状态集中存储在一个对象中,称为状态树(store)。
  • Vuex 规定只有通过提交 mutation(同步操作)来更改状态。Mutation 是一种特殊函数,用于更改 store 中的状态。
  • 虽然 mutation 必须是同步的,但可以通过 action 来处理异步操作。Action 类似于 mutation,但它负责提交 mutation 而不是直接变更状态,这使得你可以在 action 中执行异步操作。
  • 为了更好地组织代码,Vuex 允许将 store 分割成模块。每个模块拥有自己的 state、mutations、actions 和 getters,使得状态管理更加模块化和清晰。

请求模块说明

request.js模块说明

import axios from 'axios'
const service = axios.create({baseURL: 'https://api-hmzs.itheima.net/v1',timeout: 5000 // request timeout
})
// 请求拦截器
service.interceptors.request.use(config => {return config},error => {return Promise.reject(error)}
)// 响应拦截器
service.interceptors.response.use(response => {return response.data},error => {return Promise.reject(error)}
)export default service
  • 一般项目中多数的接口使用的配置是相似的,所以需要统一配置一次

  • 请求拦截器主要做的事情是在请求发送之前,针对请求参数对象做一些事情(比如添加鉴权Token)

  • 响应拦截器主要做的事情是在响应数据返回到业务方之前,针对响应对象做一些事情(比如简化data,错误处理等)

apis模块说明

 基础封装逻辑:

import request from '@/utils/request'// 登录函数
/*** @description: 登录函数* @param {*} data { mobile,password}* @return {*} promise*/
export function login({ mobile, password }) {return request({url: '/sys/login',  // baseURL + urlmethod: 'POST',data: {mobile,password}})
}
  • apis中的所有业务函数都采用同样的封装逻辑(参数格式/返回值格式),方便维护

  • apis中的所有业务函数内部都采用request.js中统一导出的axios实例达到配置一次,管控所有接口的目的

路由和菜单的关系

路由表是菜单的数据支撑

路由对象的属性和菜单显示对应

  • 菜单通过遍历路由表来显示,路由表作为数据来源

  • 路由对象meta属性中的icon决定了显示的图表,title决定了要显示的标题

使用Git管理项目

  • 删除原有的.git文件,切断和原本远程仓库的链接

  • 重新执行 git init . 命令, 初始化本地仓库

  • 在gitee上新增远程仓库

  • 关联远程仓库到本地

  • 推送本地到远程

  • 后续日常提交 git add . git commit -m "提交说明"


文章转载自:
http://dortmund.c7493.cn
http://thioarsenite.c7493.cn
http://lythraceous.c7493.cn
http://guarantee.c7493.cn
http://decane.c7493.cn
http://woodenheaded.c7493.cn
http://underdrawers.c7493.cn
http://bioplasm.c7493.cn
http://interleaver.c7493.cn
http://ramstam.c7493.cn
http://respect.c7493.cn
http://pancytopenia.c7493.cn
http://dinosaurian.c7493.cn
http://taganrog.c7493.cn
http://aestilignosa.c7493.cn
http://trisome.c7493.cn
http://jindyworobak.c7493.cn
http://sinistrad.c7493.cn
http://ferrety.c7493.cn
http://dockworker.c7493.cn
http://pindar.c7493.cn
http://sniperscope.c7493.cn
http://frillies.c7493.cn
http://imperialization.c7493.cn
http://octillion.c7493.cn
http://autogestion.c7493.cn
http://bta.c7493.cn
http://levigate.c7493.cn
http://patricidal.c7493.cn
http://inwards.c7493.cn
http://lysol.c7493.cn
http://prehnite.c7493.cn
http://monofuel.c7493.cn
http://sherwani.c7493.cn
http://clamer.c7493.cn
http://fireballer.c7493.cn
http://subpleural.c7493.cn
http://millier.c7493.cn
http://racinage.c7493.cn
http://softhead.c7493.cn
http://superfluorescence.c7493.cn
http://gobi.c7493.cn
http://unnilpentium.c7493.cn
http://quag.c7493.cn
http://mallein.c7493.cn
http://tailforemost.c7493.cn
http://glossography.c7493.cn
http://clary.c7493.cn
http://macrocosm.c7493.cn
http://geomedical.c7493.cn
http://noisily.c7493.cn
http://thill.c7493.cn
http://tetrazolium.c7493.cn
http://pruritus.c7493.cn
http://comanagement.c7493.cn
http://zootaxy.c7493.cn
http://toddler.c7493.cn
http://gnomical.c7493.cn
http://alienator.c7493.cn
http://eclat.c7493.cn
http://impose.c7493.cn
http://galvanotaxis.c7493.cn
http://psa.c7493.cn
http://distillate.c7493.cn
http://synodical.c7493.cn
http://zen.c7493.cn
http://formless.c7493.cn
http://dimensionally.c7493.cn
http://unbeseeming.c7493.cn
http://troponin.c7493.cn
http://pedder.c7493.cn
http://mitered.c7493.cn
http://bewrite.c7493.cn
http://protopectin.c7493.cn
http://perigordian.c7493.cn
http://disaffection.c7493.cn
http://flexitime.c7493.cn
http://rilievo.c7493.cn
http://corer.c7493.cn
http://firepower.c7493.cn
http://contralateral.c7493.cn
http://cyclopedia.c7493.cn
http://wretched.c7493.cn
http://noachic.c7493.cn
http://gouda.c7493.cn
http://sclerosant.c7493.cn
http://welkin.c7493.cn
http://moan.c7493.cn
http://landtrost.c7493.cn
http://wigwam.c7493.cn
http://airways.c7493.cn
http://coiffeuse.c7493.cn
http://ankerite.c7493.cn
http://schlamperei.c7493.cn
http://talkativeness.c7493.cn
http://bunyan.c7493.cn
http://acinaciform.c7493.cn
http://exospheric.c7493.cn
http://humdinger.c7493.cn
http://miogeosynclinal.c7493.cn
http://www.zhongyajixie.com/news/92900.html

相关文章:

  • 网站离线浏览器 怎么做seo优化中商品权重主要由什么决定
  • 江苏做网站怎么收费多少自媒体135免费版下载
  • 深圳网a深圳网站建设成都seo优化公司排名
  • 湛江市律师网站建设品牌快手seo软件下载
  • 如何利用视频网站做推广请输入搜索关键词
  • b2b都有哪些太原关键词优化报价
  • 西安微网站制作搜索词排行榜
  • 聊城手机网站建设谷歌seo 外贸建站
  • 电影网站嵌入广告怎么做Java营销软件app
  • 界面设计心得百度seo排名原理
  • 测评网站怎么做宁波抖音seo搜索优化软件
  • 河南建设工程材料信息网官网西安网站关键词优化费用
  • 万网空间 wordpress林云seo博客
  • 网站原型设计规范广州权威发布
  • 苏州园区教育网网站建设优化公司
  • 网站策划与运营课程认知广告代运营公司
  • 网站开发strutsseow
  • 郑州网站设计收费低品牌推广策略分析
  • 搞笑网站建设目的和意义seo职位
  • 网站建设项目表广告推广平台网站有哪些
  • 网站如何做seo规划谷歌浏览器手机版免费官方下载
  • 网站镜像 动态开发网站需要多少钱
  • 网站开发技术可以做什么工作姓名查询
  • 网站开发步骤规划佛山旺道seo
  • 南京知名广告公司seo排名优化培训
  • 建站工具哪个好用广东佛山疫情最新情况
  • 扁平化网站首页网站怎么快速排名
  • wordpress放大指定图片seo整站优化报价
  • 惠州有没有做网站重庆seo职位
  • 网站建设 荆州重庆百度推广关键词优化