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({ return request({
url: '/archives/packages/getByCodeValue', url: '/archives/packages/getByCodeValue',
method: 'get' method: 'get',
params: query
}) })
} }

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

Loading…
Cancel
Save