I will chase, I will reach, I will fly.
前置服务器一台minio安装包(国内镜像),下载对应版本的minio运行文件配置文件在/etc/default 目录创建 minio 配置文件,如下:配置文件不能有中文,请将下面中文提示删除# MINIO_ROOT_USER and MINIO_ROOT_PASSWORD sets the root account for the MinIO server. # This user has unrestricted permissions to perform S3 and administrative API operations on any resource in the deployment. # Omit to use the default values 'minioadmin:minioadmin'. # MinIO recommends setting non-default values as a best practice, regardless of environment MINIO_ROOT_USER=minioadmim # 控制台账号 MINIO_ROO
使用方法// 引入 import { authorize } from '@/path/to/xx.js' // 使用 authorize({ scope: 'scope.userLocation', showModal: true, authName: '获取位置信息', success: () => { console.log('授权成功') uni.getLocation({ isHighAccuracy: true, success: res => { console.log(res); }, fail: (err) => { console.log(err.errMsg); } }) }, fail: err => { console.error('au
问题如下解决办法StackOverflow Error TS2339: Property 'Connection' does not exist on type 'Navigator'图示export type Navigator = NavigatorNetworkInformation export declare interface NavigatorNetworkInformation { readonly connection?: NetworkInformation } type Megabit = number type Millisecond = number export type EffectiveConnectionType = '2g' | '3g' | '4g' | 'slow-2g' | 'unknown' export type ConnectionType = | 'bluetooth' | 'cellular' | 'ethernet' | 'mixed' | 'none' | 'other' | 'unknown'
原由在 windows 编写的 shell 文件 复制到 centos 下无法运行其主要原因是文件编码不对解决使用vi工具 vi test.sh利用如下命令查看文件格式 :set ff 或 :set fileformat 可以看到如下信息 fileformat=dos 或 fileformat=unix 利用如下命令修改文件格式 :set ff=unix 或 :set fileformat=unix :wq (存盘退出)其他使用 dostounix 一劳永逸
前言在 vue 项目中使用了 static 静态资源文件,开发环境下直接访问没什么问题,在编译之后是不存在 static 这个目录下的文件的,所以需要 copy-webpack-plugin 这个插件来实现 static 目录的复制使用方法npm 包地址 CopyWebpackPlugin 安装 npm install copy-webpack-plugin -D or yarn add copy-webpack-plugin -D使用如下// 在 vue.config.js 里 const CopyPlugin = require("copy-webpack-plugin"); module.exports = { plugins: [ new CopyPlugin({ patterns: [ { from: "source", to: "dest" }, { from: "other", to: "public" }, ], }),
lettered
生,亦我所欲也;义,亦我所欲也。