修改vite需要替换的原始配置
This commit is contained in:
@@ -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) {
|
||||
// 切片传完以后 合成文件
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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%;
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user