Açıklama Yok

reghao db7dca9305 update Index.vue 3 ay önce
img 5e11e23aa2 使用 elementui 替换 vuetify 2 yıl önce
public 092ebed2a3 更新 src/assets/img 模块 3 ay önce
src db7dca9305 update Index.vue 3 ay önce
.browserslistrc e6618dd99d 更新配置, 解决 webstorm 不能自动推断 elementui 标签的问题 2 yıl önce
.editorconfig e6618dd99d 更新配置, 解决 webstorm 不能自动推断 elementui 标签的问题 2 yıl önce
.env.development 934286fd88 websocket 使用 wss 协议 9 ay önce
.env.production 934286fd88 websocket 使用 wss 协议 9 ay önce
.eslintrc.js e6618dd99d 更新配置, 解决 webstorm 不能自动推断 elementui 标签的问题 2 yıl önce
.gitignore f18020c44f update gitignore 2 yıl önce
Dockerfile c68e0dc689 update Dockerfile 3 ay önce
LICENSE 5e11e23aa2 使用 elementui 替换 vuetify 2 yıl önce
README.md da76e7a91d 将关键字 tnb 替换为 tf 3 ay önce
babel.config.js 8fe2d8fda2 初始版本,https://toscode.gitee.com/puzhiweizuishuai/VideoWeb.git@e1af8bf 4 yıl önce
build.sh da76e7a91d 将关键字 tnb 替换为 tf 3 ay önce
package.json 1566a87731 更新 views/blog 模块 3 ay önce
vue.config.js ea3612f102 添加帐号登录注册相关页面 2 yıl önce

README.md

tfapp

ElementUI 的模板框架来自这个项目 master 分支的 c93506a7 版本

tfapp 模块

  • / > 主站
  • /my > 用户帐号
  • /mall > 商城
  • /exam > 考试系统
  • /disk > 网盘
  • /cam > 摄像头

依赖

  • os:Linux
  • node:18

后端接口

vue.config.js 文件中配置服务接口地址:

devServer: {
	port: 8000, // 项目的端口号
	// 跨域代理配置
	proxy: {
		'/api': {
			target: 'http://localhost:8888', //这里是接口地址,接口地址联系作者获取
			ws: true,//是否代理websockets
			changeOrigin: true,   // 设置同源  默认false,是否需要改变原始主机头为目标URL
			pathRewrite: {
				'^/api': ''
			}		
		}
	}
}

构建部署

安装依赖

npm --registry http://registry.npm.taobao.org i

启动服务

npm run serve

启动服务后打开浏览器,访问 http://localhost:8000

项目打包

npm run build

使用 .env.production 文件中的配置

构建后生成的结果在 dist 目录中

Nginx 配置

server {
   listen 8080;
   access_log off;
   
   root /opt/webroot;
   location / {
      try_files $uri $uri/ /index.html;
   }
}

root 指令的路径指向 dist 目录的绝对路径