Open thomasliew opened 1 year ago
http://www.nianyi.cc/2022/11/14/53c8c4dd0d5e.html
1234app.config.globalProperties.$axios = $axiosconst { proxy } = getCurrentInstance() as anyproxy.$axios.get() 事实上官方是不建议应用使用 getCurrentInstance 方法的 1234567891011// main.tsconst app = create
http://www.nianyi.cc/2022/11/14/53c8c4dd0d5e.html
1234app.config.globalProperties.$axios = $axiosconst { proxy } = getCurrentInstance() as anyproxy.$axios.get() 事实上官方是不建议应用使用 getCurrentInstance 方法的 1234567891011// main.tsconst app = create