使用 vue create admin 创建的项目, 识别不到 <%= BASE_URL %>变量,默认是空值。

来源:4-2 集成bootstrap后台管理模板ace

weixin_慕九州1173902

2021-10-31

老师, 为什么 我 的 工程运行 不正常。
我的整个运行和版本都和你一样的。

PS I:\study\springcloud\imooc\test_springboot> vue create admin

Vue CLI v4.1.2
┌──────────────────────────────────────────┐
│ │
│ New version available 4.1.2 → 4.5.14 │
│ │
└──────────────────────────────────────────┘

? Please pick a preset: default (babel, eslint)

Vue CLI v4.1.2
✨ Creating project in I:\study\springcloud\imooc\test_springboot\admin.
⚙ Installing CLI plugins. This might take a while…

yorkie@2.0.0 install I:\study\springcloud\imooc\test_springboot\admin\node_modules\yorkie
node bin/install.js

setting up Git hooks
can’t find .git directory, skipping Git hooks installation

core-js@3.19.0 postinstall I:\study\springcloud\imooc\test_springboot\admin\node_modules\core-js
node -e “try{require(’./postinstall’)}catch(e){}”

ejs@2.7.4 postinstall I:\study\springcloud\imooc\test_springboot\admin\node_modules\ejs
node ./postinstall.js

added 1263 packages from 655 contributors in 151.84s

84 packages are looking for funding
run npm fund for details

🚀 Invoking generators…
📦 Installing additional dependencies…

added 53 packages from 36 contributors in 12.612s

89 packages are looking for funding
run npm fund for details

⚓ Running completion hooks…

📄 Generating README.md

🎉 Successfully created project admin.
👉 Get started with the following commands:

$ cd admin
$ npm run serve

PS I:\study\springcloud\imooc\test_springboot> cd admin
PS I:\study\springcloud\imooc\test_springboot\admin> npm run serve

写回答

3回答

甲蛙

2021-11-05

没遇到过这个问题,实在不行就先按你的方法解决,先往后做,在最后一章前端的发布,我有介绍怎么通过修改配置来修改BASE_URL值

0
0

甲蛙

2021-11-01

没看出来你报的是什么错,http://localhost:8080/favicon.ico这个是小图标,304是说读的本地缓存,不需要重新从服务器读取图片

0
2
Qin37
回复
weixin_慕九州1173902
请问您解决了吗?我遇到了一样的问题
2022-04-05
共2条回复

weixin_慕九州1173902

提问者

2021-10-31

我用老师你的代码运行也是一样的情况。

  1. Request URL:

    http://localhost:8080/favicon.ico

  2. Request Method:

    GET

  3. Status Code:

    304 Not Modified

  4. Remote Address:

    127.0.0.1:8080

  5. Referrer Policy:

    strict-origin-when-cross-origin

This request has no response data available.

0
0

Spring Cloud+ Vue前后端分离开发企业级在线视频系统

全网稀缺课程 市场热门项目+主流框架 一课掌握前后端技术

1743 学习 · 1697 问题

查看课程