1 Star 0 Fork 37

LYC_Admin / sagooiot-ui

forked from sagoo / sagooiot-ui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

sagoo-admin-ui

业务管理系统前端

依赖安装方式

用 yarn 安装依赖

  1. 全局安装yarn: npm i yarn -g ,如果是非windows环境需要加 sudo
  2. 用yarn在项目中安装依赖: yarn i

环境变量配置

.env

| 为默认环境配置,不可修改,会导致线上使用异常

.env.golocal |为go直接运行环境配置,不可修改,会导致go直接运行异常

.env.development

| 开发环境配置,可在此配置开发环境,开发使用时会覆盖默认配置

.env.development.local

| 可在本地添加此文件进行配置,会覆盖默认配置及【.env.development】的配置,并且git会忽略这个文件,不会对其他的开发者的环境造成影响

<el-form :model="params" inline ref="queryRef" @submit.prevent @keyup.enter="queryList">

本地开发环境配置

  1. 本地开发环境配置文件为.env.development.local
  2. 本地开发环境配置文件不会被git管理,不会对其他的开发者的环境造成影响

参考:

# 本地环境
ENV = 'development'

# websocket配置
VITE_WS_URL = 'ws://127.0.0.1:8199/api/v1/websocket'

# 服务端配置
VITE_SERVER_PROTOCOL = 'http:'
VITE_SERVER_HOSTNAME = '127.0.0.1:8199'
VITE_SERVER_URL = ''
VITE_API_URL = '/api/v1'

运行


yarn run dev
MIT License Copyright (c) 2021 lyt-Top Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

SagooIOT前端工程 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/LYCSMS_ms_admin/sagooiot-ui.git
git@gitee.com:LYCSMS_ms_admin/sagooiot-ui.git
LYCSMS_ms_admin
sagooiot-ui
sagooiot-ui
main

搜索帮助