A resource allocation method, applied to a terminal device and comprising: receiving uplink resource allocation rule information configured by a network-side device for a path of a bearer of the terminal device, wherein the uplink resource allocation rule information comprises a first uplink resource allocation rule and/or a second uplink resource allocation rule, the first uplink resource allocation rule is an uplink resource allocation rule used when the path is in an activated state, and the second uplink resource allocation rule is an uplink resource allocation rule used when the path is in a deactivated state; and performing uplink resource allocation based on the uplink resource allocation rule information; wherein the first uplink resource allocation rule comprises at least one of the following: type information of a first available uplink resource; and type information of a first unavailable uplink resource; the second uplink resource allocation rule comprises at least one of the following: type information of a second available uplink resource; and type information of a second unavailable uplink resource; wherein type information of an uplink resource comprises at least one of the following: a sub-carrier spacing, SCS, corresponding to the uplink resource; a carrier corresponding to the uplink resource; a bandwidth part, BWP, corresponding to the uplink resource; beam information corresponding to the uplink resource; transmission node information corresponding to the uplink resource; duration of a transmission channel corresponding to the uplink resource; and grant type corresponding to the uplink resource. receiving uplink resource allocation rule information configured by a network-side device for a path of a bearer of the terminal device, wherein the uplink resource allocation rule information comprises a first uplink resource allocation rule and/or a second uplink resource allocation rule, the first uplink resource allocation rule is an uplink resource allocation rule used when the path is in an activated state, and the second uplink resource allocation rule is an uplink resource allocation rule used when the path is in a deactivated state; and performing uplink resource allocation based on the uplink resource allocation rule information; wherein the first uplink resource allocation rule comprises at least one of the following: type information of a first available uplink resource; and type information of a first unavailable uplink resource; the second uplink resource allocation rule comprises at least one of the following: type information of a second available uplink resource; and type information of a second unavailable uplink resource; wherein type information of an uplink resource comprises at least one of the following: a sub-carrier spacing, SCS, corresponding to the uplink resource; a carrier corresponding to the uplink resource; a bandwidth part, BWP, corresponding to the uplink resource; beam information corresponding to the uplink resource; transmission node information corresponding to the uplink resource; duration of a transmission channel corresponding to the uplink resource; and grant type corresponding to the uplink resource. type information of a first available uplink resource; and type information of a first unavailable uplink resource; the second uplink resource allocation rule comprises at least one of the following: type information of a second available uplink resource; and type information of a second unavailable uplink resource; wherein type information of an uplink resource comprises at least one of the following: a sub-carrier spacing, SCS, corresponding to the uplink resource; a carrier corresponding to the uplink resource; a bandwidth part, BWP, corresponding to the uplink resource; beam information corresponding to the uplink resource; transmission node information corresponding to the uplink resource; duration of a transmission channel corresponding to the uplink resource; and grant type corresponding to the uplink resource. type information of a second available uplink resource; and type information of a second unavailable uplink resource; wherein type information of an uplink resource comprises at least one of the following: a sub-carrier spacing, SCS, corresponding to the uplink resource; a carrier corresponding to the uplink resource; a bandwidth part, BWP, corresponding to the uplink resource; beam information corresponding to the uplink resource; transmission node information corresponding to the uplink resource; duration of a transmission channel corresponding to the uplink resource; and grant type corresponding to the uplink resource.