mo 1 year ago
parent ec639374cd
commit 8c7a34ceb8

@ -146,10 +146,11 @@ export function reqCheck(data) {
// 获取详情
export function getCodeValueo() {
export function getCodeValueo(query) {
return request({
url: '/archives/packages/getByCodeValue',
method: 'get'
method: 'get',
params: query
})
}

@ -89,18 +89,14 @@ export default {
};
},
created() {
console.log(location);
this.getCodeValueo();
},
methods: {
getCodeValueo() {
// const params = window.location.search.substring(1);
const params = new URLSearchParams(location.search);
const name = params.get("codeValue");
console.log(name);
getCodeValueo({
codeValue: name,
}).then((response) => {
getCodeValueo({ codeValue: name }).then((response) => {
this.form = response.data;
});
},

Loading…
Cancel
Save