#vue專案打包後產(chǎn)生static和index.html,然後設(shè)定nginx指向index.html,呼叫api的時(shí)候卻回傳index.html的內(nèi)容
#開發(fā)的時(shí)候不會(huì)出現(xiàn)這樣的問題,vue裡面配置了proxyTable轉(zhuǎn)送api到3000端口,nginx也需要設(shè)定轉(zhuǎn)送api嗎?
閉關(guān)修行中......
你nginxlocation配置有問題咯
location / { index index.html; }