vue项目相关配置

Fluent温度超限调试:从能量方程到网格优化的实战指南 本文深入解析Fluent中温度超限问题的诊断与解决方法,从能量方程机制到网格优化策略,提供实战指南。通过分析温度与焓的换算关系,探讨典型场景如能量方程发散、局部网格质量差等,并给出五步调试法及高级命令应用,帮助工程师有效解决温度计算异常问题。 阅读详情

vue项目相关配置

一、favicon.ico图标

先看效果图
favicon.ico图标
配置的正是上图海蓝色所圈中的部分。具体怎么配置请继续往下看:
favicon.ico文件路径:
在这里插入图片描述

1、、打包后的(生产环境)

在这里插入图片描述
可依照上图查找路径进行配置:build → webpack.prod.conf.js →

plugins: [
	.......
   new HtmlWebpackPlugin({
      filename: config.build.index,
      template: 'index.html',
      favicon: 'src/assets/img/favicon.ico',
      // 相对路径
      inject: true,
      ......
    }),
  ......
  ]
2、、开发调试中的(开发环境)

同理:
在这里插入图片描述
可依照上图查找路径进行配置:build → webpack.dev.conf.js →

plugins: [
	.......
    new HtmlWebpackPlugin({
      filename: 'index.html',
      template: 'index.html',
      favicon: 'src/assets/img/favicon.ico',
      // 相对路径
      inject: true
    }),
  ......
  ]

二、个人喜欢的相关插件或组件的安装和使用

1、element-ui
npm i element-ui --save
# mian.js中引入
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
2、stylus
# 安装
npm i stylus stylus-loader --save
3、fastclick
npm i fastclick --save
# main.js中引入
import fastclick from 'fastclick'
fastclick.attach(document.body)
4、axios
# 安装
npm i axios --save
5、MD5加密
# 安装
npm install --save js-md5
使用1:在需要使用的项目文件中引入import md5 from 'js-md5'
使用:
md5('holle')  // bcecb35d0a12baad472fbe0392bcc043

使用2:在main.js文件中将md5转换成vue原型:
import md5 from 'js-md5';
Vue.prototype.$md5 = md5;
# 在需要用到的文件中使用:
this.$md5('holle') // bcecb35d0a12baad472fbe0392bcc043

可能会持续更新,自己遇到什么自己认为比较突出的问题的解决方案,我就会在里面加。

设计原则:面向对象设计原则详解 我们在应用程序开发中,一般要求尽量两做到可维护性和可复用性。 应用程序的复用可以提高应用程序的开发效率和质量,节约开发成本,恰当的复用还可以改善系统的可维护性。而在面向对象的设计里面,可维护性复用都是以面向对象设计原则为基础的,这些设计原则首先都是复用的原则,遵循这些设计原则可以有效地提高系统的复用性,同时提高系统的可维护性。面向对象设计原则和设计模式也是对系统......... 阅读详情

相关推荐

波克 上海 Unity开发笔试题 2024

主要分为四部分,如果没有准备好,不要点击笔试链接,进入就会自动开始。

z2014z的博客 3407

vue3引入pinna

vue3使用pinna

qq_44737915的博客 2211

Qualcomm工具的使用

简介   由于我们公司主要是以高通平台为主,所以工具的使用是必不可少的,包括QPST、QRCT3、QXDM、QDART等。   高通工具顾名思义就是,对于高通平台的软件开发进行软件的烧录,软件的调试,软件的Log的抓取和分析过程,像我们平常用的大致就是烧版本、改NV、制作QCN、然后校准、强发强收等操作。 QPST   QPST主要是用来做一些参数的配置,包括EFS文件的编辑,QCN的导入和备份与...

Jimmy 2万+

vue3引入pinna配置使用

【代码】vue3引入pinna配置使用。

m0_53912016的博客 1163

Git系列(一)、Git基础教程【建议收藏】

Git一、Git简介1.1、什么是Git? 一、Git简介 1.1、什么是Git? Git是一个开源的分布式版本控制系统,用于敏捷高效地处理任何或大或小的项目。 Git是Linus Torvalds为了帮助管理Linux内核开发而开发的一个开放源代码的版本控制软件。 Git与常用的版本控制工具CVS、Subversion等不同,它采用了分布式版本库的方式,不用服务器端软件支持。 .........

一宿君 5万+

别再乱调了!Zygo MetroPro软件滤波功能保姆级指南,从均值到鲁棒高斯样条一次讲清

本文深入解析Zygo MetroPro软件的滤波功能,从均值滤波到鲁棒高斯样条等九种算法,帮助用户根据测量对象特性选择最佳滤波组合。通过真实工业案例和参数配置指南,提升光学测量数据的准确性和效率,特别适用于硅晶圆、光学镜片等精密测量场景。

weixin_30888413的博客 160

Pinna的使用以及pinna的持续化存储(两种方法)

Pinna

weixin_42125732的博客 1万+

SGM5860x高精度ADC驱动开发与SPI接口实战指南

本文详细介绍了SGM5860x高精度ADC芯片的驱动开发与SPI接口配置实战。内容涵盖芯片特性、SPI通信设置、寄存器映射、驱动初始化、数据采集处理、校准优化及调试技巧,帮助开发者快速掌握国产24位ADC的应用,提升工业测量项目的精度与稳定性。

vvv99的博客 727

Vue3如何使用Pinia详细介绍、pinia持久化存储(pinia-plugin-persistedstate详细配置)

1、在stores文件夹下创建一个store ,名为user.js ,命名是尽量是见名知意的。2、定义user.jsStore 是使用定义的,并且它需要一个唯一名称,作为第一个参数传递这个name,也称为id,是必要的,Pinia 使用它来将 store 连接到 devtools。将返回的函数命名为use...是跨可组合项的约定// defineStore('userInfo',{}) userInfo就是这个仓库的名称nameusername: '赫赫',age: 30,hobby: [

H524268015wsw的博客 6万+

第18章:Ingestion Pipeline 数据摄取流水线

本文介绍了LlamaIndex的IngestionPipeline如何解决合同文档处理中的四大核心问题:不可重复、无追溯、无容错和无法缓存。通过标准化数据处理流程,将手工操作升级为工厂流水线模式,实现数据的可复用、可追踪和高效处理。文章详细阐述了Pipeline的设计原理,包括Transformation的串行编排、缓存机制(基于输入和Transformation的哈希值)以及数据血缘追踪(通过Node的metadata记录处理过程)。

davidwang456的专栏 66

RK3568平台(camera篇)点亮imx586摄像头

mipi摄像头硬件确认点:1.供电:5V,2.8V,1.2V,1.8V,reset脚(硬拉3.3,上电的时候从低到高),pwron脚外接3.3V。2,时钟:MCLKOUT是24兆时钟。3.4组差分mipi线。mipi的data线的波形为方波。

weixin_49303682的博客 7260

vue3中的pinia(大菠萝)

pinia中包含了 state:存放数据 getters:计算属性 actions:方法(可处理同/异步)src>创建store文件夹>创建××.js文件。和vue2中vuex用法类似。首先在项目中安装引入。main.js中挂载。

weixin_60885570的博客 513

【OpenStack】菜鸟学OpenStack之部署Train(2)

菜鸟学OpenStack之部署Mitaka(2)基础环境准备1 安全设置规则2 主机节点网络设置 基础环境准备 在安装配置OpenStack各个服务组件之前,准备基础环境对于后续的安装配置至关重要。整个OpenStack环境需要仪表盘服务(Horizon)、计算服务(Nova)、身份认证服务(KeyStone)、网络服务(Neutron)、镜像服务(Glance)、块存储(Cinder)、对象存储(Swift)、计量服务(Ceilometer)、编排服务(Heat)。 需要配置的所有服务组件都要运行在Lin

小哲的博客 1721

vue 项目文件及相关配置——0801

1、完整版: README.md 命令文件。 package-lock.json 默认配置文件,自带的包工具。 package.json 项目配置文件,包含项目基本信息、安装的第三方包工具版本信息等。 index.html 项目的网页入口文件,默认设置,不需要操作。 .postcssrc.js 配置解析文件的,不需要操作。 .gitignore 写后缀名的,不需要操作。 .editorconfig 不需要操作。 static 静态资源管理文件,一般用来放网页中静态的css或静态的图片,就可以用路径直接拿

张静的博客 401

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

vite搭建vue3项目及相关配置

本文介绍了使用Vite创建Vue 3项目的步骤及可能遇到的问题。

lyj168997的博客 1031

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

vue3项目初始化及相关配置

vue3项目初始化及相关配置。

dear_fire_dragon的博客 179

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Vue3项目创建及相关配置

Vue是一种用于构建用户界面的JavaScript框架,核心思想是通过数据驱动视图,使得界面的渲染和更新更加简单高效。Vue通过内置的Vue Router插件提供了路由功能来实现单页面应用程序的页面切换。

qq_63161848的博客 2610

VScode开发Vue项目,关闭eslint代码检查,以及相关配置

刚开始打开vue项目的时候会发现vue代码报红,解决方式如下 首先安装Vetur和ESLint 打开文件》首选项》设置,配置如下代码 { "explorer.confirmDelete": false, "vetur.validation.template": false, "eslint.autoFixOnSave": true...

xuchangqi的博客 3801

Vue项目上线相关配置

项目上线相关配置 1.通过node创建web服务器 创建node项目,并安装express,通过express快速创建web服务器,将vue项目打包所生成的dist文件夹,托管为静态资源即可。 1.1.创建vue-shop-server文件夹,并用vscod打开,将原项目的dist文件夹复制进来。在终端中输入: npm i -y npm i express -S !](https://img-blog.csdnimg.cn/20200801091522631.png?x-oss-process=im

喜欢藏风里 1706

vue cli3+ 搭建的vue项目中的vue.config.js相关简单配置

1. vue cli官网:https://cli.vuejs.org/zh/ 2. vue.config.js:如果没有,就在根目录下创建一个vue.config.js文件。 const path = require('path') const resolve = dir => path.join(__dirname,dir) module.exports={ baseUrl:process.env.NODE_ENV ==='procution'?'/static-prd':'/',

斗师——Ace 670

vue创建项目及相关配置

vue创建项目及相关配置 1、安装nodejs及配置 找到官网下载地址,根据需要下载对应的版本 官网下载 下载后的安装:一路下一步,安装位置自定义,我这里是安装到了H盘 测试是否安装成功:win+r 打开cmd 输入 node -v 以及 npm -v 能看到版本就是安装成功了 由于我们在下载依赖包时,node会默认将它们下载到C盘,不方便管理也占用C盘,我们还需要配置依赖包安装目录 在node的安装目录下新建文件夹node_global和node_cache,并且在cmd中执行命令如下: npm conf

yaFnging的博客 239

Vue项目相关配置

Vue项目相关配置 项目运行 浏览器自动打开 在package.json的scripts内serve 后添加–open "scripts": { "serve": "vue-cli-service serve --open", "build": "vue-cli-service build", "lint": "vue-cli-service lint" }, eslint校验功能关闭 在根目录下,创建vue.config.js 在文件内写入 module.exports

weixin_44175255的博客 780

vue项目 webpack-dev-server相关配置

//webpack-dev-server相关配置 devServer:{ host:'0.0.0.0', port:port, open:true, proxy:{ //detail:https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]:{ ...

weixin_46337813的博客 789

vue简易微前端项目搭建(三):webpack相关配置

vue简易微前端项目搭建(三):webpack相关配置

weixin_45432736的博客 298

vue项目中使用TypeScript相关配置

TypeScript简单介绍:总结优势: 2.创建tsconfig.json 命令:

qq_38886284的博客 1452

vue-element-admin 项目 tinymce 相关配置

vue-element-admin 项目 tinymce 相关配置

木木的学习笔记 2014
上一篇: SpringBoot学习笔记(第二课时:项目启动)
下一篇: SpringBoot学习笔记(第三课时:项目配置)
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值