惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

SecWiki News
SecWiki News
H
Help Net Security
罗磊的独立博客
Stack Overflow Blog
Stack Overflow Blog
M
MIT News - Artificial intelligence
Jina AI
Jina AI
L
LangChain Blog
K
Kaspersky official blog
I
Intezer
Martin Fowler
Martin Fowler
爱范儿
爱范儿
AWS News Blog
AWS News Blog
The Hacker News
The Hacker News
Recorded Future
Recorded Future
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
CXSECURITY Database RSS Feed - CXSecurity.com
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
U
Unit 42
N
News and Events Feed by Topic
A
Arctic Wolf
G
GRAHAM CLULEY
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
F
Fortinet All Blogs
C
Cisco Blogs
美团技术团队
Vercel News
Vercel News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
H
Hacker News: Front Page
T
Tailwind CSS Blog
I
InfoQ
宝玉的分享
宝玉的分享
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
P
Palo Alto Networks Blog
A
About on SuperTechFans
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
云风的 BLOG
云风的 BLOG
TaoSecurity Blog
TaoSecurity Blog
Google Online Security Blog
Google Online Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Privacy & Cybersecurity Law Blog
H
Heimdal Security Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News: Ask HN
Hacker News: Ask HN
O
OpenAI News
博客园 - Franky
Scott Helme
Scott Helme

博客园 - 神游虚空

解决 GDAL 用 C# 访问时,中文乱码问题。 学习AI编程 安装 RAGFlow 安装 KTransformer 量化投资赚的哪方面的钱? python中调用 .net 的 dll 时,报错:Exception has occurred: TypeLoadException 使用 Open XML SDK 实现 html 富文本转换为 docx 格式示例 在python中 先调用C#的dll 返回了一个类的列表,如何把这个列表转换为 python 中的 DataFrame? vue项目服务器部属源码调试解决办法 大A指数周内效应分析 两个通达信公式 如何在.netcore 上实现 Rbac 权限管理 修道是精神上的减熵过程 BPMN2.0 Specifaction 节选翻译,10.4.6 事件处理(handling Events,原文 275页) BPMN2.0 Specifaction 节选翻译,10.4 事件 Events (原文233页) 使用ef或dbcontext的时候主要注意三个问题 EFCore 中 group 分组后,只选出每组中含有最大值的数据行 BPMN2.0 Specifaction 节选翻译,10.2.8 循环特征 Loop Characteristics (原文 189页) BPMN2.0 Specifaction 节选翻译,10.2.5 子流程 Sub-Processes (原文173页) BPMN2.0 Specifaction 节选翻译,10 Process (原文145页)
vue3 + ts + element_plus 创建后台管理系统,学习记录
神游虚空 · 2023-01-01 · via 博客园 - 神游虚空

本贴用于记录 vue3 后台管理系统学习过程

1.1、创建 vue3 + ts 工程

vue create admin-demo

 

 

 接下来都是默认选项。

 完毕后,进入 admin-demo 目录下, 用 code . 启动 vscode 编辑项目。

在  vscode 终端中启动  yarn serve

 1.2、加入  element-plus

启用命令   yarn add element-plus 

安装成功后在 package.json 文件中可以查看 element-plus 的版本

 按照官网指导,在 main.ts 中引入 element plus。

1.2.1、完整引和 element-plus

在 main.ts 中加入

import ElementPlus from 'element-plus'

import 'element-plus/dist/index.css'

import App from './App.vue'

...

const app = createApp(App)

app.use(ElementPlus)


1.3、用 volar 代替 vetur

 这个插件禁用。改用 volar 进行 vue3 的语法检查。

1.3.1、更改配置文件:

// tsconfig.json
{
  "compilerOptions": {
    

 1.4、使用语法糖 <script setup lang=“ts"> 

 Vue3中 <script setup lang="ts"> 使用总结

Vue3 setup + TypeScript 开发新范式

官网说明:sfc-script-setup

1.5、使用 pinia 代替 vueX 

Pinia 中文文档

1.5.1、安装 pinia

yarn add pinia

 1.6、在 chrome 浏览器中安装调试插件 vue devtools

Vue Devtools下载及使用

2、构建第一个主页面

2.1、在 App.vue 中引入 el-config-provider

 1 <template>
 2   <el-config-provider :locale="zhCn">
 3     <router-view />
 4   </el-config-provider>
 5 </template>
 6 
 7 <script setup lang="ts">
 8 import { ElConfigProvider } from "element-plus";
 9 import zhCn from "element-plus/lib/locale/lang/zh-cn";
10 </script>

2.2、创建 header.vue

2.2.1、vue+ts项目中import图片时报错TS 2307 :Cannot find mode ... 

n、参考文档

一行行代码带你敲,Vue3+TS电商后台系统项目实战   github库 

 Vue3 + vite + Ts + pinia + 实战 + 源码 +electron