Vue开发实例(六)实现左侧菜单导航

左侧菜单导航

  • 一、一级菜单
  • 二、二级菜单
  • 三、三级菜单
    • 1、加入相关事件
  • 四、菜单点击跳转
    • 1. 创建新页面
    • 2. 配置路由
    • 3. 菜单中加入路由配置
    • 4、处理默认的Main窗口为空的情况
  • 五、动态左侧菜单导航
    • 1、动态实现一级菜单
    • 2、动态实现二级菜单

一、一级菜单

在之前的Aside.vue中去实现代码,一级菜单其实非常的简单,直接用el-menu 和el-menu-item 就行,Aside.vue代码如下:

<template>
  <el-menu>
    <el-menu-item>一级菜单1</el-menu-item>
    <el-menu-item>一级菜单2</el-menu-item>
    <el-menu-item>一级菜单3</el-menu-item>
  </el-menu>
</template>

<script>
export default {
  name: "Aside",
};
</script>

<style scoped>
</style>

在这里插入图片描述

  1. 设置菜单背景颜色和文字颜色
    • 在el-menu中设置 background-color 和 text-color 属性
  2. 设置选中后菜单文字颜色
    • 设置 active-text-color 属性,但是必须在需要生效的子菜单中设置index属性,否则不生效,先不设置index
  3. 设置默认的选中菜单
    • 设置default-active为对应的index值即可
    • 比如我设置默认选中第2个菜单,第2个菜单的index为2,所以我们在el-menu中加入 default-active=“2”
  4. 在菜单中加入图标
    • 用 i 标签即可,在菜单名前面加入 <i class=“el-icon-XXX”>,XXX是图标的名称。

效果如图所示:
在这里插入图片描述
一级菜单全部代码

<template>
  <el-menu
    background-color="#545c64"
    text-color="#ffffff"
    active-text-color="#ffd04b"
    default-active="2"
  >
    <el-menu-item index="1"
      ><i class="el-icon-location"></i>一级菜单1</el-menu-item
    >
    <el-menu-item index="2"
      ><i class="el-icon-document"></i>一级菜单2</el-menu-item
    >
    <el-menu-item index="3"
      ><i class="el-icon-setting"></i>一级菜单3</el-menu-item
    >
  </el-menu>
</template>

<script>
export default {
  name: "Aside",
};
</script>

<style scoped>
.el-icon-location,
.el-icon-document,
.el-icon-setting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
</style>

二、二级菜单

<div>
        <el-menu background-color="#545c64" text-color="#ffffff"
                 active-text-color="#ffd04b" default-active="2" >
            <el-submenu index="1">
                <template slot="title"><i class="el-icon-location"></i><span>一级菜单1</span></template>
                <el-menu-item index="1-1">选项1</el-menu-item>
                <el-menu-item index="1-2">选项2</el-menu-item>
            </el-submenu>
            <el-menu-item index="2"><i class="el-icon-document"></i>一级菜单2</el-menu-item>
            <el-menu-item index="3"><i class="el-icon-setting"></i>一级菜单3</el-menu-item>
        </el-menu>
    </div>

修改步骤:

  1. el-menu 修改为 el-submenu
  2. 按钮名称、图标用 template 标签包裹,必须加入 slot="title"属性,否则菜单样式不对。
  3. 加入新的两个 el-menu-item

在这里插入图片描述
参考代码:

由于之前挖过一个坑,就是global.css里面的height,之前也提到过,所以要设置一下,el-submenu的高度,具体的参考代码

<template>
  <div>
    <el-menu
      background-color="#545c64"
      text-color="#ffffff"
      active-text-color="#ffd04b"
      default-active="2"
    >
      <el-submenu index="1">
        <template slot="title"
          ><i class="el-icon-location"></i><span>一级菜单1</span></template
        >
        <el-menu-item index="1-1">选项1</el-menu-item>
        <el-menu-item index="1-2">选项2</el-menu-item>
      </el-submenu>
      <el-menu-item index="2"
        ><i class="el-icon-document"></i>一级菜单2</el-menu-item
      >
      <el-menu-item index="3"
        ><i class="el-icon-setting"></i>一级菜单3</el-menu-item
      >
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "Aside",
};
</script>

<style scoped>
.el-submenu {
  height: auto;
}
.el-icon-location,
.el-icon-document,
.el-icon-setting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
</style>

三、三级菜单

跟二级菜单的修改方式是一样的,就是多加一层

在这里插入图片描述
参考代码:

<template>
  <div>
    <el-menu
      background-color="#545c64"
      text-color="#ffffff"
      active-text-color="#ffd04b"
      default-active="2"
    >
      <el-submenu index="1">
        <template slot="title"
          ><i class="el-icon-location"></i><span>一级菜单1</span></template
        >
        <el-submenu index="1-1">
          <template slot="title"
            ><i class="el-icon-location"></i><span>选项1</span></template
          >
          <el-menu-item index="1-1-1"
            ><i class="el-icon-document"></i>选项1-1</el-menu-item
          >
          <el-menu-item index="1-1-2"
            ><i class="el-icon-document"></i>选项1-2</el-menu-item
          >
        </el-submenu>
        <el-submenu index="1-2">
          <template slot="title"
            ><i class="el-icon-location"></i><span>选项2</span></template
          >
          <el-menu-item index="1-2-1"
            ><i class="el-icon-setting"></i>选项2-1</el-menu-item
          >
          <el-menu-item index="1-2-2"
            ><i class="el-icon-setting"></i>选项2-2</el-menu-item
          >
        </el-submenu>
      </el-submenu>
      <el-menu-item index="2"
        ><i class="el-icon-document"></i>一级菜单2</el-menu-item
      >
      <el-menu-item index="3"
        ><i class="el-icon-setting"></i>一级菜单3</el-menu-item
      >
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "Aside",
};
</script>

<style scoped>
.el-submenu {
  height: auto;
}
.el-icon-location,
.el-icon-document,
.el-icon-setting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
</style>

1、加入相关事件

打开open、关闭close、选择select 3个事件
在el-menu中加入三个事件属性,并编写对应的method

在这里插入图片描述

全部参考代码:

<template>
  <div>
    <el-menu
      background-color="#545c64"
      text-color="#ffffff"
      active-text-color="#ffd04b"
      default-active="2"
      @open="handleOpen"
      @close="handleClose"
      @select="handSelect"
    >
      <el-submenu index="1">
        <template slot="title"
          ><i class="el-icon-location"></i><span>一级菜单1</span></template
        >
        <el-submenu index="1-1">
          <template slot="title"
            ><i class="el-icon-location"></i><span>选项1</span></template
          >
          <el-menu-item index="1-1-1"
            ><i class="el-icon-document"></i>选项1-1</el-menu-item
          >
          <el-menu-item index="1-1-2"
            ><i class="el-icon-document"></i>选项1-2</el-menu-item
          >
        </el-submenu>
        <el-submenu index="1-2">
          <template slot="title"
            ><i class="el-icon-location"></i><span>选项2</span></template
          >
          <el-menu-item index="1-2-1"
            ><i class="el-icon-setting"></i>选项2-1</el-menu-item
          >
          <el-menu-item index="1-2-2"
            ><i class="el-icon-setting"></i>选项2-2</el-menu-item
          >
        </el-submenu>
      </el-submenu>
      <el-menu-item index="2"
        ><i class="el-icon-document"></i>一级菜单2</el-menu-item
      >
      <el-menu-item index="3"
        ><i class="el-icon-setting"></i>一级菜单3</el-menu-item
      >
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "Aside",
  methods: {
    handleOpen(key, keyPath) {
      console.log("打开:", key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log("关闭:", key, keyPath);
    },
    handSelect(key, keyPath) {
      console.log("选择:", key, keyPath);
    },
  },
};
</script>

<style scoped>
.el-submenu {
  height: auto;
}
.el-icon-location,
.el-icon-document,
.el-icon-setting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
</style>

四、菜单点击跳转

当点击菜单项,能够在右边的Main窗口中显示对应的页面。

1. 创建新页面

Main/ 文件夹下创建三个页面,如图所示
在这里插入图片描述
代码如下:

<template>
    <div>
       这是Main1
    </div>
</template>

<script>
    export default {
        name: "Main1"
    }
</script>

<style scoped>
</style>

2. 配置路由

  • 安装配置路由
  • 在src下创建 router/index.js
  • 创建了主路由index,就是进入的主页面
  • 这3个index子路由,用来跳转,分别对应 main1、main2、main3 几个页面。
  • 子路由的跳转位置为,index的Main位置,因为我们管理系统只需要Main位置发生改变,头部、左边导航、下方footer是不需要改变的。

安装路由

npm install vue-router@3.5.2

注意:

  • vue2搭配vue-router3
  • vue3搭配vue-router4

在main.js中注册router,让路由生效
在这里插入图片描述

router/index.js代码如下:

import VueRouter from "vue-router"
import Index from "@/components/Index";

const routes = [
    //一级路由
    {
        path: '/index',
        name: 'index',
        component: Index,
        //路由嵌套
        children:[
            {path: '/index/menu1',component: () => import('@/components/Main/Main1.vue')},
            {path: '/index/menu2',component: () => import('@/components/Main/Main2.vue')},
            {path: '/index/menu3',component: () => import('@/components/Main/Main3.vue')}
        ]
    }
]

const router = new VueRouter({
    mode:'history',
    routes
})

export  default router;

在原来的Index.vue页面,设置路由跳转位置,这里我们在原来的<Main />位置修改位 router-view即可。
在这里插入图片描述

3. 菜单中加入路由配置

  • 这里我们使用一级菜单,简单方便,修改Aside/index.vue的代码。
  • el-menu里面加入 router属性
  • el-menu-item 的index,设置对应的子路由

代码参考如下:

<template>
  <div style="height: 100%">
    <el-menu
      background-color="#545c64"
      text-color="#ffffff"
      active-text-color="#ffd04b"
      class="el-menu-vertical-demo"
      router
    >
      <el-menu-item index="/index/menu1"
        ><i class="el-icon-location"></i>一级菜单1</el-menu-item
      >
      <el-menu-item index="/index/menu2"
        ><i class="el-icon-document"></i>一级菜单2</el-menu-item
      >
      <el-menu-item index="/index/menu3"
        ><i class="el-icon-setting"></i>一级菜单3</el-menu-item
      >
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "Aside",
};
</script>

<style scoped>
.el-icon-location,
.el-icon-document,
.el-icon-setting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
</style>

我们进入index主路由,发现页面是空的
在这里插入图片描述
点击左侧导航菜单,就会有对应的页面内容
在这里插入图片描述

4、处理默认的Main窗口为空的情况

设置默认的跳转位置,设置如下:

  • 在子路由中添加一个新的路由,用来默认跳转
  • 在主路由中配置redirect 值为这个子路由

router/index.js的代码如下

import VueRouter from "vue-router"
import Index from "@/components/Index";

const routes = [
    //一级路由
    {
        path: '/index',
        name: 'index',
        component: Index,
        redirect: 'index/Main',
        //路由嵌套
        children:[
            {path: '/index/Main',component: () => import('@/components/Main/index.vue')},
            {path: '/index/menu1',component: () => import('@/components/Main/Main1.vue')},
            {path: '/index/menu2',component: () => import('@/components/Main/Main2.vue')},
            {path: '/index/menu3',component: () => import('@/components/Main/Main3.vue')}
        ]
    }
]

const router = new VueRouter({
    mode:'history',
    routes
})

export  default router;

其实就是一个重定向的操作,当直接输入index路由时就会默认跳转到Main路由里面,这样就会有个默认的页面了。
下方我们在地址栏只输入到index,敲回车后,会在后面默认加上 “/Main”,直接重定向了,同时Main窗口的页面也显示了我们指定的页面。

在这里插入图片描述

五、动态左侧菜单导航

在项目中,比较多见的是会将菜单存储到后台的数据库中,通过返回数据来决定菜单的模样,并不是由前端来控制菜单的模样,所以就来实现动态的菜单导航,根据后台数据来生成菜单导航。

在这里插入图片描述

1、动态实现一级菜单

分析上述代码,其中代码 <el-menu-item index=“/index/menu1”>一级菜单1</el-menu-item> 是比较相似的,不同的地方有3个:

  • index 表示路由的path
  • 图标的名称
  • 菜单的名称

基于以上几个不同,我们可以考虑设置一个数组,数组的元素包含 路由路径、图标名、菜单名等几个属性,然后以循环的方式来输出这个菜单。

实现代码:

<template>
  <div style="height: 100%">
    <el-menu
      background-color="#545c64"
      text-color="#ffffff"
      active-text-color="#ffd04b"
      class="el-menu-vertical-demo"
      router
    >
      <el-menu-item
        :index="item.path"
        v-for="item in menu_data"
        :key="item.name"
      >
        <i :class="item.icon"></i>{{ item.name }}
      </el-menu-item>
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "Aside",
  data() {
    return {
      menu_data: [
        {
          name: "一级菜单1",
          icon: "el-icon-location",
          path: "/index/menu1",
        },
        {
          name: "一级菜单2",
          icon: "el-icon-document",
          path: "/index/menu2",
        },
        {
          name: "一级菜单3",
          icon: "el-icon-setting",
          path: "/index/menu3",
        },
      ],
    };
  },
};
</script>

<style scoped>
.el-icon-location,
.el-icon-document,
.el-icon-setting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
</style>
  1. 菜单数据menu_data包含3个元素,每个元素分别有name、icon和path属性,这个三个属性分别对应菜单名、图标、路由的路径。
  2. 使用v-for循环menu_data,填入对应的属性就可。

2、动态实现二级菜单

在一级菜单的数据对象里面加入 child 属性,这个属性也是跟现在的菜单数据menu_data一样的,
child也是一个数组,包含多个元素,每个元素分别有name、icon和path属性,这个三个属性分别对应菜单名、图标、路由的路径。

在这里插入图片描述
参考代码:

<template>
  <div style="height: 100%">
    <el-menu
      background-color="#545c64"
      text-color="#ffffff"
      active-text-color="#ffd04b"
      class="el-menu-vertical-demo"
      router
    >
      <el-submenu :index="item.path" v-for="item in menu_data" :key="item.name">
        <template slot="title"
          ><i :class="item.icon"></i><span>{{ item.name }}</span></template
        >

        <el-menu-item
          :index="child.path"
          v-for="child in item.child"
          :key="child.name"
        >
          <i :class="child.icon"></i>{{ child.name }}
        </el-menu-item>
      </el-submenu>
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "Aside",
  data() {
    return {
      menu_data: [
        {
          name: "一级菜单1",
          icon: "el-icon-location",
          path: "/index/menu1",
          child: [
            {
              name: "二级菜单1-1",
              icon: "el-icon-user",
              path: "/index/menu11",
            },
            {
              name: "二级菜单1-2",
              icon: "el-icon-user-solid",
              path: "/index/menu12",
            },
          ],
        },
        {
          name: "一级菜单2",
          icon: "el-icon-document",
          path: "/index/menu2",
          child: [
            {
              name: "二级菜单2-1",
              icon: "el-icon-star-on",
              path: "/index/menu21",
            },
            {
              name: "二级菜单2-2",
              icon: "el-icon-star-off",
              path: "/index/menu22",
            },
          ],
        },
        {
          name: "一级菜单3",
          icon: "el-icon-setting",
          path: "/index/menu3",
          child: [
            {
              name: "二级菜单3-1",
              icon: "el-icon-s-help",
              path: "/index/menu31",
            },
            {
              name: "二级菜单3-2",
              icon: "el-icon-help",
              path: "/index/menu32",
            },
          ],
        },
      ],
    };
  },
};
</script>

<style scoped>
.el-submenu{
  height: auto;
}

.el-icon-help,
.el-icon-s-help,
.el-icon-star-off,
.el-icon-star-on,
.el-icon-user-solid,
.el-icon-user,
.el-icon-location,
.el-icon-document,
.el-icon-setting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
</style>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/422761.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

php儿童服装销售管理系统计算机毕业设计项目包运行调试

php mysql儿童服装销售网 功能&#xff1a;前台后台 前台&#xff1a; 1.服装资讯 文章标题列表 详情 2.服装选购中心 分页查看图文列表 详情 3.用户注册 登陆 退出 4.服装加入收藏 5.加入购物车 6.对服装进行评论 会员中心&#xff1a; 1.我的账户 查看 修改 2.我的收藏 查看 …

文献阅读笔记《Spatial-temporal Forecasting for Regions without Observations》13页

目录 发行刊物 ABSTRACT 1 INTRODUCTION 2 RELATED WORK&#xff08;相关工作 2.1 Spatial-temporal Forecasting&#xff08;时空预测 2.2 Spatial-temporal Forecasting withIncomplete Data&#xff08;不完全数据的时空预测 2.3 Graph Contrastive Learning&#xf…

Vue2:路由的两种模式history模式和hash模式

一、情景说明 之前我们写的项目启动后&#xff0c;浏览器访问时&#xff0c;路径中会有个#/&#xff0c;会导致不够美观 因为一般的访问地址都是http://123.123.123.123/aaa/bbb这种形式 这一篇&#xff0c;就来解决这个问题 二、案例 1、hash模式 特点&#xff1a;#/后的…

【JavaEE进阶】 代理模式

文章目录 &#x1f343;前言&#x1f38b;什么叫代理模式&#x1f334;静态代理&#x1f38d;动态代理&#x1f6a9;JDK动态代理&#x1f6a9;CGLIB动态代理 ⭕总结 &#x1f343;前言 前面对Spring AOP的详细使用进行了介绍&#xff0c;这篇博客博主将详细讲解一下Spring AOP…

lottie加载带图片的json 预览

背景 产品看到一款app的动效很不错&#xff0c;让我去模仿实现。 第一步 获取apk中的静态资源 拿到这个app的apk后&#xff0c;直接使用压缩工具解压&#xff0c; assets文件夹就是静态资源的目录 静态资源里面有lottie 那么大部分的动效应该都是lottie实现的 网上找了很多…

Linux学习之信号

目录 1.信号的概念 2.信号的产生 3.信号的保存 4.信号的捕捉 信号的其它内容&#xff1a; SIGCHLD信号 1.信号的概念 在Linux中&#xff0c;信号是一种用于进程之间通信的基本机制。它是一种异步事件通知&#xff0c;用于通知进程发生了某些事件。如下是一些常见的Linux信…

DC-DC转换电路简介

DC-DC转换电路简介 1. 源由2. 工作原理3. 转换芯片4. DC-DC干扰5. DC-DC滤波5.1 PCB Layout5.2 电容滤波5.3 电感滤波 6. DC-DC电感/电容取值实验如何做&#xff1f;7. 参考资料 1. 源由 虽然说嵌入式系统涉及软件、硬件、机械、结构、网络等诸多领域内容。因此&#xff0c;在…

【MATLAB】 ICEEMDAN信号分解+FFT傅里叶频谱变换组合算法

有意向获取代码&#xff0c;请转文末观看代码获取方式~ 展示出图效果 1 ICEEMDAN信号分解算法 ICEEMDAN 分解又叫改进的自适应噪声完备集合经验模态分解&#xff0c;英文全称为 Improved Complete Ensemble Empirical Mode Decomposition with Adaptive Noise。 ICEEMDAN (I…

诊所门诊电子处方软件操作教程及试用版下载,医务室处方笺管理系统模板教程

诊所门诊电子处方软件操作教程及试用版下载&#xff0c;医务室处方笺管理系统模板教程 一、前言 以下软件程序教程以 佳易王诊所电子处方软件V17.0为例说明 软件文件下载可以点击最下方官网卡片——软件下载——试用版软件下载 如上图&#xff0c;点击基本信息设置——处方配…

一起去吃面条子吧

微风掠进窗沿&#xff0c;拂过愣在键盘上的指尖&#xff0c;正踌躇于命题的“||”还是“&&”。      突来的惬意&#xff0c;让人猛然惊醒&#xff0c;似是季节恍惚间悄然更替&#xff0c;那么这道命题索性就先放着。      毕竟实际编译运行结果&#xff0c;与…

实现定时器的两种方法:使用windows api定时器 和使用c++11/14 定时器

前言&#xff1a; 当我有一个开发需求&#xff0c;符合下面的条件 1.需要某个任务在程序中每隔一段时间就要执行一次&#xff0c;可能把这个任务封装成了一个函数。 2.这种需要定时执行的任务&#xff0c;有2个&#xff0c;3个....越来越多。 这个时候我们就可以考虑使用定时…

web基础03-JavaScript

目录 一、JavaScript基础 1.变量 2.输出 3.变量提升 4.区块 5.JavaScript数据类型 6.查看数值类型 7.undefined和null 8.布尔值 9.和的区别 10.算数/三元/比较/逻辑/赋值运算符 11.特殊字符 12.字符串 &#xff08;1&#xff09;获取字符串长度 &#xff08;2&am…

基于YOLOv8/YOLOv7/YOLOv6/YOLOv5的番茄成熟度检测系统(Python+PySide6界面+训练代码)

摘要&#xff1a;开发番茄成熟度检测系统对于提高农业产量和食品加工效率具有重大意义。本篇博客详细介绍了如何利用深度学习构建一个番茄成熟度检测系统&#xff0c;并提供了完整的实现代码。该系统基于强大的YOLOv8算法&#xff0c;并结合了YOLOv7、YOLOv6、YOLOv5的对比&…

SpringBoot约定大于配置

什么是约定大于配置 "约定大于配置"&#xff08;Convention Over Configuration&#xff09;是一种理念&#xff0c;旨在通过默认约定和规则来减少开发人员需要做的配置工作。在Spring Boot框架中&#xff0c;这一原则得到了充分应用&#xff0c;帮助开发者更快地构…

300分钟吃透分布式缓存-15讲:如何深入理解、应用及扩展 Twemproxy?

Twemproxy 架构及应用 Twemproxy 是 Twitter 的一个开源架构&#xff0c;它是一个分片资源访问的代理组件。如下图所示&#xff0c;它可以封装资源池的分布及 hash 规则&#xff0c;解决后端部分节点异常后的探测和重连问题&#xff0c;让 client 访问尽可能简单&#xff0c;同…

AI时代,我们需要什么能力?

AI 时代&#xff0c;一定会重构很多行业&#xff0c;也会重构人民的生活工作方式&#xff0c;那么 AI 时代&#xff0c;我们需要培养什么能力呢&#xff1f; 我们应该去做那些 AI 做不了的事情&#xff01;让 AI 成为我们的工具&#xff0c;助力我们更高效的解决问题&#xff…

Java - 获取汉字大写首字母输出

背景 有个项目需要将一批字符串的拼音首字母输出并大写&#xff0c;写了个工具类。 实现 需要引入外部jar。 <dependency><groupId>com.belerweb</groupId><artifactId>pinyin4j</artifactId><version>2.5.1</version> </dep…

C++之set、multiset

1、set简介 set是一种关联式容器&#xff0c;包含的key值唯一&#xff0c;所有元素都会在插入时自动被排序&#xff0c;其存储结构为红黑树。set只能通过迭代器(iterator)访问。 set和multiset的区别&#xff1a; &#xff08;1&#xff09;set不允许容器中有重复的元素&…

VUE3中的组件传值

一、父传子(props) 在子组件中可以使用defineProps接收父组件向子组件的传值 父组件fatherPage.vue&#xff1a; <template><div class"father"><button click"a a 1">按钮</button><childPage :a"a" /><…

在Windows系统上安装Docker和SteamCMD容器的详细指南有哪些?

在Windows系统上安装Docker和SteamCMD容器的详细指南有哪些&#xff1f; 安装Docker&#xff1a; 首先&#xff0c;需要在Windows操作系统上激活WSL2功能。这是因为Docker作为一个容器工具&#xff0c;依赖于已存在并运行的Linux内核环境。可以通过使用winget来安装Docker。具体…
最新文章