Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
976 views
in Technique[技术] by (71.8m points)

vue ssr 能这样做吗?

A目录 写前端代码 并打包。

B目录 安装 node express mongo 等做接口服务。

A与B 代码上无关系。

在A下,打包好的 前端和 srr代码,放到B里。 B提供静态文件托管 和 接口 服务。

请问 B 目录也 要安装 vue axios 和 vuex 等前端的库吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

不需要,A提供了是一个完整功能的js了,B中将它加载起来就ok了


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...