修改vite需要替换的原始配置

This commit is contained in:
蒋吉兆
2021-09-04 16:04:07 +08:00
parent a785f12fb3
commit ebca96d95c
19 changed files with 430 additions and 327 deletions
@@ -140,7 +140,7 @@ export default {
},
async upLoadFileSlice(item) {
// 切片上传
await axios.post(process.env.VUE_APP_BASE_API + '/fileUploadAndDownload/breakpointContinue', item.formData)
await axios.post(import.meta.env.VITE_BASE_API + '/fileUploadAndDownload/breakpointContinue', item.formData)
this.waitNum-- // 百分数增加
if (this.waitNum === 0) {
// 切片传完以后 合成文件
+1 -1
View File
@@ -31,7 +31,7 @@
</template>
<script>
const path = process.env.VUE_APP_BASE_API
const path = import.meta.env.VITE_BASE_API
import { mapGetters } from 'vuex'
import infoList from '@/mixins/infoList'
import { exportExcel, loadExcelData, downloadTemplate } from '@/api/excel'
+1 -1
View File
@@ -67,7 +67,7 @@
</template>
<script>
const path = process.env.VUE_APP_BASE_API
const path = import.meta.env.VITE_BASE_API
import { mapGetters } from 'vuex'
import infoList from '@/mixins/infoList'
import { getFileList, deleteFile } from '@/api/fileUploadAndDownload'
+1 -1
View File
@@ -116,7 +116,7 @@ export default {
.init_page{
margin: 0;
padding: 0;
background-image: url("~@/assets/login_background.jpg");
background-image: url("@/assets/login_background.jpg");
background-size: cover;
width: 100%;
height: 100%;
+1 -1
View File
@@ -106,7 +106,7 @@ import ChooseImg from '@/components/chooseImg'
import { setUserInfo, changePassword } from '@/api/user'
import { mapGetters, mapMutations } from 'vuex'
const path = process.env.VUE_APP_BASE_API
const path = import.meta.env.VITE_BASE_API
export default {
name: 'Person',
components: {
+1 -1
View File
@@ -96,7 +96,7 @@
<script>
// 获取列表内容封装在mixins内部 getTableData方法 初始化已封装完成
const path = process.env.VUE_APP_BASE_API
const path = import.meta.env.VITE_BASE_API
import {
getUserList,
setUserAuthorities,
@@ -5,7 +5,7 @@
</template>
<script>
var path = process.env.VUE_APP_BASE_PATH
var path = import.meta.env.VITE_BASE_PATH
export default {
name: 'FormGenerator',
data() {